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

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

@shuse2

Description

@shuse2

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions