Skip to content
This repository has been archived by the owner on Sep 16, 2021. It is now read-only.

Commit

Permalink
Litecore: Fix rpc tests(addressindex, spentindex) failure caused by i…
Browse files Browse the repository at this point in the history
…nsufficient fee
  • Loading branch information
ultragtx committed Feb 25, 2017
1 parent 360afe7 commit 2256707
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions qa/rpc-tests/addressindex.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def run_test(self):
tx = CTransaction()
tx.vin = [CTxIn(COutPoint(int(spending_txid, 16), 0))]
send_amount = 1 * 100000000 + 12840
change_amount = amount - send_amount - 10000
change_amount = amount - send_amount - 100000
tx.vout = [CTxOut(change_amount, scriptPubKey2), CTxOut(send_amount, scriptPubKey)]
tx.rehash()

Expand Down Expand Up @@ -279,7 +279,7 @@ def run_test(self):
CTxIn(COutPoint(int(memtxid2, 16), 0)),
CTxIn(COutPoint(int(memtxid2, 16), 1))
]
tx.vout = [CTxOut(int(amount / 2 - 10000), scriptPubKey2)]
tx.vout = [CTxOut(int(amount / 2 - 100000), scriptPubKey2)]
tx.rehash()
self.nodes[2].importprivkey(privKey3)
signed_tx3 = self.nodes[2].signrawtransaction(binascii.hexlify(tx.serialize()).decode("utf-8"))
Expand Down Expand Up @@ -310,7 +310,7 @@ def run_test(self):
tx.vin = [
CTxIn(COutPoint(int(utxos[0]["txid"], 16), utxos[0]["outputIndex"]))
]
amount = int(utxos[0]["satoshis"] - 1000)
amount = int(utxos[0]["satoshis"] - 100000)
tx.vout = [CTxOut(amount, address1script)]
tx.rehash()
self.nodes[0].importprivkey(privkey1)
Expand Down
2 changes: 1 addition & 1 deletion qa/rpc-tests/spentindex.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def run_test(self):
# Check that
print("Testing spent index...")

feeSatoshis = 10000
feeSatoshis = 100000
privkey = "cSdkPxkAjA4HDr5VHgsebAPDEh9Gyub4HK8UJr2DFGGqKKy4K5sG"
address = "mgY65WSfEmsyYaYPQaXhmXMeBhwp4EcsQW"
addressHash = bytes([11,47,10,12,49,191,224,64,107,12,204,19,129,253,190,49,25,70,218,220])
Expand Down

0 comments on commit 2256707

Please sign in to comment.