Skip to content

Libplanet 5.0.0

Latest
Compare
Choose a tag to compare
@github-actions github-actions released this 02 Jul 10:17
· 34 commits to main since this release
c1df40d

Released on July 2, 2024.

Deprecated APIs

  • BlockChain.DetermineGenesisStateRootHash() has been removed. [#3811]
  • BlockChain.EvaluateGenesis() has been removed. [#3811]
  • BlockChain.DetermineBlockStateRootHash() has been removed. [#3811]

Backward-incompatible API changes

  • (Libplanet.Action) IBlockChainStates.GetWorldState(BlockHash?) does not accept null parameter any more. [#3811]
  • Bumped BlockMetadata.CurrentProtocolVersion to 8. [#3811]
  • BlockChain.EvaluateBlock() accepts Block instead of IPreEvaluationBlock. [#3811]
  • BlockChain.ProposeGenesisBlock() receives parameter HashDigest<SHA256>? stateRootHash. [#3811]
  • BlockChain.ProposeGenesisBlock() does not receive parameter IActionEvaluator actionEvaluator any more. [#3811]
  • BlockChain.ProposeBlock() receives parameter HashDigest<SHA256> stateRootHash. [#3811]
  • (Libplanet.Net) Changed Context() to accept additional BlockCommit? typed argument. Removed lastCommit parameter from Context.Start(). [#3833, #3845]
  • (Libplanet.Net) Changed Context.Start() to throw an InvalidOperationException when Context is not in a valid state. [#3846]
  • (Libplanet.Net) Removed IConsensusMessageCommunicator parameter from Context(). [#3848, #3849]
  • (Libplanet.Net) Added Running property to ConsensusContext. [#3851]
  • (Libplanet.Net) Added Start() method to ConsensusContext. [#3851]
  • (Libplanet.Net) Changed NewHeight() to throw a NullReferenceException if it is called while its internal BlockChain is in an invalid state. [#3851]
  • (Libplanet.Net) Removed Null value from ConsensusStep enum. [#3851]

Added APIs

  • Added BlockChain.DetermineNextBlockStateRootHash() method. [#3811]

Behavioral changes

  • Context.ProcessHeightOrRoundUponRules() now appends block asynchronously, as a manner of fire-and-forget. [#3808]
  • BlockHeader.StateRootHash now means state root hash calculated by BlockChain.DetermineNextBlockStateRootHash(previousBlockHash). [#3811]