From 32697ba1a8dee251134417814c1b663729d260de Mon Sep 17 00:00:00 2001 From: ANISH M <58029804+Anish-M-code@users.noreply.github.com> Date: Sun, 26 Mar 2023 14:47:41 +0530 Subject: [PATCH] Update fee rate to 0.01 DOGE/kb in p2p-feefilter.py I have made an attempt to update fee rate in p2p-feefilter.py to recommended minimum transaction fee of 0.01 DOGE/kb to reflect fee rate changes made in 1.14.4 release , it is linked with issue #3201 --- qa/rpc-tests/p2p-feefilter.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/qa/rpc-tests/p2p-feefilter.py b/qa/rpc-tests/p2p-feefilter.py index 86ce0b42e..1c5355eb7 100755 --- a/qa/rpc-tests/p2p-feefilter.py +++ b/qa/rpc-tests/p2p-feefilter.py @@ -74,22 +74,22 @@ class FeeFilterTest(BitcoinTestFramework): NetworkThread().start() test_node.wait_for_verack() - # Test that invs are received for all txs at feerate of 20 sat/byte - node1.settxfee(Decimal("0.00020000")) + # Test that invs are received for all txs at feerate of 20000 sat/byte + node1.settxfee(Decimal("0.20000000")) txids = [node1.sendtoaddress(node1.getnewaddress(), 1) for x in range(3)] assert(allInvsMatch(txids, test_node)) test_node.clear_invs() - # Set a filter of 15 sat/byte - test_node.send_filter(15000) + # Set a filter of 15000 sat/byte + test_node.send_filter(15000000) - # Test that txs are still being received (paying 20 sat/byte) + # Test that txs are still being received (paying 20000 sat/byte) txids = [node1.sendtoaddress(node1.getnewaddress(), 1) for x in range(3)] assert(allInvsMatch(txids, test_node)) test_node.clear_invs() - # Change tx fee rate to 10 sat/byte and test they are no longer received - node1.settxfee(Decimal("0.00010000")) + # Change tx fee rate to 10000 sat/byte and test they are no longer received + node1.settxfee(Decimal("0.10000000")) [node1.sendtoaddress(node1.getnewaddress(), 1) for x in range(3)] sync_mempools(self.nodes) # must be sure node 0 has received all txs @@ -100,7 +100,7 @@ class FeeFilterTest(BitcoinTestFramework): # to 35 entries in an inv, which means that when this next transaction # is eligible for relay, the prior transactions from node1 are eligible # as well. - node0.settxfee(Decimal("0.00020000")) + node0.settxfee(Decimal("0.20000000")) txids = [node0.sendtoaddress(node0.getnewaddress(), 1)] assert(allInvsMatch(txids, test_node)) test_node.clear_invs()