Fixes p2p_feefilter.py.
# Copyright (c) 2017-2018 The Raven Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
-"""Test processing of feefilter messages."""
+"""Test processing of feefilter messages.
+
+ (Wallet now has DEFAULT_TRANSACTION_MINFEE = 0.00050000"""
from test_framework.mininode import *
from test_framework.test_framework import RavenTestFramework
@@ -55,22 +57,22 @@ class FeeFilterTest(RavenTestFramework):
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 70 sat/byte
+ node1.settxfee(Decimal("0.00070000"))
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_and_ping(msg_feefilter(15000))
+ # Set a filter of 60 sat/byte
+ test_node.send_and_ping(msg_feefilter(60000))
- # Test that txs are still being received (paying 20 sat/byte)
+ # Test that txs are still being received (paying 70 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 50 sat/byte and test they are no longer received
+ node1.settxfee(Decimal("0.00050000"))
[node1.sendtoaddress(node1.getnewaddress(), 1) for x in range(3)]
sync_mempools(self.nodes) # must be sure node 0 has received all txs
@@ -81,8 +83,8 @@ class FeeFilterTest(RavenTestFramework):
# 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"))
- txids = [node0.sendtoaddress(node0.getnewaddress(), 1)]
+ node0.settxfee(Decimal("0.00070000"))
+ txids = [node0.sendtoaddress(node0.getnewaddress(), 1)] #
assert(allInvsMatch(txids, test_node))
test_node.clear_invs()
