From 2256707c0ef767b6b95db423d7912af25f8a7658 Mon Sep 17 00:00:00 2001 From: ultragtx Date: Sat, 25 Feb 2017 23:49:38 +0800 Subject: [PATCH] Litecore: Fix rpc tests(addressindex, spentindex) failure caused by insufficient fee --- qa/rpc-tests/addressindex.py | 6 +++--- qa/rpc-tests/spentindex.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/qa/rpc-tests/addressindex.py b/qa/rpc-tests/addressindex.py index 6968e0dca..eb7f8c286 100755 --- a/qa/rpc-tests/addressindex.py +++ b/qa/rpc-tests/addressindex.py @@ -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() @@ -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")) @@ -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) diff --git a/qa/rpc-tests/spentindex.py b/qa/rpc-tests/spentindex.py index 4119a11ae..6ad3a29ad 100755 --- a/qa/rpc-tests/spentindex.py +++ b/qa/rpc-tests/spentindex.py @@ -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])