You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The signatures of transactions in blocks re verified in Transaction.validate() when getSender() is called.
Transaction.validate() is called by Transaction.verify() which is called by the rules BlockTxsValidationRule and BlockTxsFieldsValidationRule.
The solutions is either to inject the sender from the cache into into the Transaction, or to pass the signatureCache to the verify() method, so that the cached sender is used instead of getSender().
I think that getSender() should be marked as a debug method to avoid being used by mistake, and getSender(cache) should be used everywhere.
The text was updated successfully, but these errors were encountered:
The signatures of transactions in blocks re verified in Transaction.validate() when getSender() is called.
Transaction.validate() is called by Transaction.verify() which is called by the rules BlockTxsValidationRule and BlockTxsFieldsValidationRule.
The solutions is either to inject the sender from the cache into into the Transaction, or to pass the signatureCache to the verify() method, so that the cached sender is used instead of getSender().
I think that getSender() should be marked as a debug method to avoid being used by mistake, and getSender(cache) should be used everywhere.
The text was updated successfully, but these errors were encountered: