LiskArchive / lisk-engine

:bullettrain_front: Lisk blockchain engine
https://lisk.com
Apache License 2.0
0 stars 0 forks source link

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

Open shuse2 opened 1 year ago

shuse2 commented 1 year ago

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

Additional Information