While wallet.py
includes the MiniWallet class and some helper methods, it also includes some methods that have been moved there without having any direct relation with the MiniWallet class. Specifically make_chain
, create_child_with_parents
and create_raw_chain
methods that were extracted from rpc_packages.py
at f8253d69d6f02850995a11eeb71fedc22e6f6575 in order to be used on both mempool_package_limits.py
and rpc_packages.py
.
Since that change, due to the introduction of additional methods in MiniWallet, the functionality of those methods can now be replicated with the existing MiniWallet methods and simultaneously simplify those tests by using the MiniWallet.
This PR’s goals are
- to simplify the
mempool_package_limits.py
functional tests with usage of the MiniWallet. - to make progress towards the removal of the
make_chain
,create_child_with_parents
andcreate_raw_chain
methods ofwallet.py
.
For the purpose of the aforementioned goals, a helper method MiniWallet.send_self_transfer_chain
is introduced and method bulk_transaction
has been integrated in create_self_transfer*
methods using an optional target_weight
option.