File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -650,6 +650,15 @@ def run_test(self):
650650 assert_array_result (tx ["details" ], {"category" : "receive" }, expected_receive_vout )
651651 assert_equal (tx [verbose_field ], self .nodes [0 ].decoderawtransaction (tx ["hex" ]))
652652
653+ self .log .info ("Testing Fee Reason" )
654+ #testing send_rpc_verbose sendtoaddress
655+ address = self .nodes [0 ].getnewaddress ("test" )
656+ txid_feeReason_one = self .nodes [2 ].sendtoaddress (address = address , amount = 10 , verbose = True )
657+ assert_equal (str (txid_feeReason_one ["Fee Reason" ]), "Fallback fee" )
658+
659+ #testing send_rpc_verbose sendtoaddress
660+ txid_feeReason_two = self .nodes [2 ].sendmany (dummy = '' , amounts = {address : 10 }, verbose = True )
661+ assert_equal (str (txid_feeReason_two ["Fee Reason" ]), "Fallback fee" )
653662
654663if __name__ == '__main__' :
655664 WalletTest ().main ()
You can’t perform that action at this time.
0 commit comments