File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -74,13 +74,20 @@ def run_test (self):
7474 # Send 21 BTC from 0 to 2 using sendtoaddress call.
7575 txid1 = self .nodes [0 ].sendtoaddress (self .nodes [2 ].getnewaddress (), 11 )
7676 txout1v0 = self .nodes [0 ].gettxout (txid1 , 0 )
77+ rawtx1 = self .nodes [0 ].getrawtransaction (txid1 , 1 )
78+ valuecommit1 = rawtx1 ["vout" ][0 ]["serValue" ]
7779 assert_equal (txout1v0 ['confirmations' ], 0 )
7880 assert (not txout1v0 ['coinbase' ])
81+ assert_equal (valuecommit1 , txout1v0 ['valuecommitment' ])
82+
7983
8084 txid2 = self .nodes [0 ].sendtoaddress (self .nodes [2 ].getnewaddress (), 10 )
8185 txout2v0 = self .nodes [0 ].gettxout (txid2 , 0 )
86+ rawtx2 = self .nodes [0 ].getrawtransaction (txid2 , 1 )
87+ valuecommit2 = rawtx2 ["vout" ][0 ]["serValue" ]
8288 assert_equal (txout2v0 ['confirmations' ], 0 )
8389 assert (not txout2v0 ['coinbase' ])
90+ assert_equal (valuecommit2 , txout2v0 ['valuecommitment' ])
8491
8592 walletinfo = self .nodes [0 ].getwalletinfo ("bitcoin" )
8693 assert_equal (walletinfo ['immature_balance' ], 0 )
You can’t perform that action at this time.
0 commit comments