Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Transaction and Block validation should be done through chain instance #79

Open
shuse2 opened this issue Mar 2, 2023 · 0 comments
Open

Comments

@shuse2
Copy link
Collaborator

shuse2 commented Mar 2, 2023

Description

Update Transaction struct Validate to be private, and add ValidateTransaction, ValidateBlock and ValidateGenesisBlock to the Chain struct.

Transaction and Block validation should depend on the configuration pass to the chain. MaxTransactionSize MaxTransactionsLength, and Transaction or Block struct doesn't hold those values

Acceptance Criteria

  • Validate on struct is private
  • Update the usage of Validate to consistently use method from Chain

Additional Information

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant