Skip to content

Libplanet 0.22.0

Compare
Choose a tag to compare
@github-actions github-actions released this 30 Nov 10:07
· 5230 commits to main since this release
0.22.0
63cdbe2

Released on November 30, 2021.

Backward-incompatible API changes

  • Removed Transaction<T>.BytesLength property. [#1609]
  • Removed Block<T>.BytesLength property. [#1609]
  • The types of BlockChain<T>.MineBlock() overloaded methods' maxBlockBytes parameters became long? (were int?). [#1609]
  • The type of IBlockPolicy<T>.GetMaxBlockBytes(long) method became long (was int). [#1609]
  • The type of BlockPolicy<T>() constructor's getMaxBlockBytes parameter became Func<long, long>? (was Func<long, int>?). [#1609]
  • The type of InvalidBlockBytesLengthException() constructor's bytesLength parameter became long (was int). [#1609]
  • The type of InvalidBlockBytesLengthException.BytesLength property became long (was int). [#1609]
  • Methods IsEmpty() and IsFull() of KBucket changed to properties IsEmpty and IsFull respectively. [#1610]
  • MessageCodec class renamed to TcpMessageCodec. [#1610]
  • lifetime parameter removed from IMessageCodec.Decode(). messageLifespan parameter added to constructors of NetMQMessageCodec and TcpMessageCodec. [#1610]
  • Removed unused PeerStates property from Swarm<T>. [#1610]
  • Method name BoundPeer.QueryAppProtocolVersion() changed to BoundPeer.QueryAppProtocolVersionNetMQ(). [#1610]

Behavioral changes

  • Swarm<T> became to append blocks to forked chain to avoid locking the canonical chain while syncing recent blocks. [#1606]
  • More streamlined structured logging together with additional logs tagged as Metric. [#1627]

Bug fixes

  • InvalidMagicCookieException and InvalidTimestampException can now be serialized and deserialized. [#1613]
  • Fixed a bug where PolymorphicAction<T> had thrown InvalidCastException when inner action's .PlainValue returns other value than Bencodex.Types.Dictionary. [#1628]

Dependencies