MCPcopy Create free account
hub / github.com/chain/txvm / Value

Method Value

protocol/bc/block.go:119–121  ·  view source on GitHub ↗

Value fulfills the sql.driver.Valuer interface.

()

Source from the content-addressed store, hash-verified

117
118// Value fulfills the sql.driver.Valuer interface.
119func (b *Block) Value() (driver.Value, error) {
120 return b.Bytes()
121}
122
123// FromBytes parses a Block from a byte slice, by unmarshaling and
124// converting a RawBlock protobuf.

Callers

nothing calls this directly

Calls 1

BytesMethod · 0.95

Tested by

no test coverage detected