com.wavesplatform.database.protobuf.package.scala Maven / Gradle / Ivy
The newest version!
package com.wavesplatform.database
import com.wavesplatform.common.state.ByteStr
import com.wavesplatform.crypto.DigestLength
import com.wavesplatform.protobuf.*
package object protobuf {
implicit class BlockMetaExt(final val blockMeta: BlockMeta) extends AnyVal {
def id: ByteStr =
(if (blockMeta.headerHash.size() == DigestLength) blockMeta.headerHash else blockMeta.signature).toByteStr
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy