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. MaxTransactionSizeMaxTransactionsLength, 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
Description
Update
Transaction
structValidate
to be private, and addValidateTransaction
,ValidateBlock
andValidateGenesisBlock
to theChain
struct.Transaction
andBlock
validation should depend on the configuration pass to the chain.MaxTransactionSize
MaxTransactionsLength
, andTransaction
orBlock
struct doesn't hold those valuesAcceptance Criteria
Validate
on struct is privateValidate
to consistently use method fromChain
Additional Information