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 @@ -120,6 +120,11 @@ def run_test(self):
120120 # Now can check that the information is the same
121121 assert_equal (r , r2 )
122122
123+ # Get the note nullifier
124+ lsu = self .nodes [1 ].listshieldedunspent ();
125+ assert_equal (len (lsu ), 1 )
126+ nullifier = lsu [0 ]["nullifier" ]
127+
123128 # Generate some change by sending part of shield_addr1 to shield_addr2
124129 txidPrev = txid
125130 shield_addr2 = self .nodes [1 ].getnewshieldedaddress ()
@@ -129,6 +134,10 @@ def run_test(self):
129134 self .sync_all ()
130135 self .generate_and_sync (height + 4 )
131136
137+ # Verify the spent nullifier
138+ tx_json = self .nodes [1 ].getrawtransaction (txid , True )
139+ assert_equal (nullifier , tx_json ["vShieldedSpend" ][0 ]["nullifier" ])
140+
132141 # Decrypted transaction details should be correct
133142 pt = self .nodes [1 ].viewshieldedtransaction (txid )
134143 assert_equal (pt ['txid' ], txid )
You can’t perform that action at this time.
0 commit comments