Skip to content

Commit

Permalink
add traceable to GetTransactionSigners neo-project/neo#2703 (#163)
Browse files Browse the repository at this point in the history
  • Loading branch information
ixje authored Jun 27, 2022
1 parent e6b2879 commit 12bdc82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion neo3/contracts/native/ledger.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def get_tx_for_contract(self, snapshot: storage.Snapshot, hash_: types.UInt256)
@register("getTransactionSigners", contracts.CallFlags.READ_STATES, cpu_price=1 << 15)
def get_tx_signers(self, snapshot: storage.Snapshot, hash_: types.UInt256) -> Optional[payloads.Signer]:
tx = snapshot.transactions.try_get(hash_)
if tx is None:
if tx is None or not self._is_traceable_block(snapshot, tx.block_height):
return None
else:
return tx.signers
Expand Down

0 comments on commit 12bdc82

Please sign in to comment.