In most functional tests using MiniWallet, the node that is used for the sending/creation of transactions (parameter from_node
to the methods send_to
, create_self_transfer
, send_self_transfer
and send_to
) is identical to the one passed to the MiniWallet instance (parameter test_node
). This especially applies for tests with only one node self.nodes[0]
.
This PR changes those methods to support a default from_node
and applies it to all functional tests where it makes sense, i.e. passing from_node
explicitely only remains if it differs from the wallet test_node
or if it is important for readability (e.g. in p2p_feefilter.py
, two different nodes are used intermittently).
The instances to tackle were identified via git grep from_node= ./test/functional/*.py
.