File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -661,5 +661,17 @@ def run_test(self):
661
661
assert_array_result (tx ["details" ], {"category" : "receive" }, expected_receive_vout )
662
662
assert_equal (tx [verbose_field ], self .nodes [0 ].decoderawtransaction (tx ["hex" ]))
663
663
664
+ self .log .info ("Test send* RPCs with verbose=True" )
665
+ address = self .nodes [0 ].getnewaddress ("test" )
666
+ txid_feeReason_one = self .nodes [2 ].sendtoaddress (address = address , amount = 5 , verbose = True )
667
+ assert_equal (txid_feeReason_one ["fee_reason" ], "Fallback fee" )
668
+ txid_feeReason_two = self .nodes [2 ].sendmany (dummy = '' , amounts = {address : 5 }, verbose = True )
669
+ assert_equal (txid_feeReason_two ["fee_reason" ], "Fallback fee" )
670
+ self .log .info ("Test send* RPCs with verbose=False" )
671
+ txid_feeReason_three = self .nodes [2 ].sendtoaddress (address = address , amount = 5 , verbose = False )
672
+ assert_equal (self .nodes [2 ].gettransaction (txid_feeReason_three )['txid' ], txid_feeReason_three )
673
+ txid_feeReason_four = self .nodes [2 ].sendmany (dummy = '' , amounts = {address : 5 }, verbose = False )
674
+ assert_equal (self .nodes [2 ].gettransaction (txid_feeReason_four )['txid' ], txid_feeReason_four )
675
+
664
676
if __name__ == '__main__' :
665
677
WalletTest ().main ()
You can’t perform that action at this time.
0 commit comments