Browse Source

Merge branch 'dev' into dev

pull/139/head
Duke Leto 6 years ago
committed by GitHub
parent
commit
1910bad115
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      qa/rpc-tests/wallet.py
  2. 3
      src/komodo_validation011.h

6
qa/rpc-tests/wallet.py

@ -43,8 +43,8 @@ class WalletTest (BitcoinTestFramework):
self.nodes[1].generate(101)
self.sync_all()
# These are different from upstream because Hush does not have a
# Founders Reward
# These are different from upstream because Hush does not have a
# Founders Reward
assert_equal(self.nodes[0].getbalance(), 160000)
assert_equal(self.nodes[1].getbalance(), 12.5)
assert_equal(self.nodes[2].getbalance(), 0)
@ -480,7 +480,7 @@ class WalletTest (BitcoinTestFramework):
assert(myopid)
except JSONRPCException,e:
errorString = e.error['message']
print errorString
print errorString
assert(False)
# This fee is larger than the default fee and since amount=0

3
src/komodo_validation011.h

@ -108,6 +108,7 @@ int32_t gettxout_scriptPubKey(int32_t height,uint8_t *scriptPubKey,int32_t maxsi
}
}
if ( !tx.IsNull() && n >= 0 && n < (int32_t)tx.vout.size() )
{
ptr = (uint8_t *)tx.vout[n].scriptPubKey.data();
@ -119,7 +120,7 @@ int32_t gettxout_scriptPubKey(int32_t height,uint8_t *scriptPubKey,int32_t maxsi
fprintf(stderr,"got scriptPubKey[%d] via rawtransaction ht.%d %s\n",m,height,txid.GetHex().c_str());
return(i);
}
else if ( !tx.IsNull() )
else
fprintf(stderr,"gettxout_scriptPubKey ht.%d n.%d > voutsize.%d\n",height,n,(int32_t)tx.vout.size());
return(-1);

Loading…
Cancel
Save