MCPcopy Create free account
hub / github.com/SmartPool/smartpool-client / RlpHeaderWithoutNonce

Method RlpHeaderWithoutNonce

ethereum/share.go:50–68  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

48}
49
50func (s *Share) RlpHeaderWithoutNonce() ([]byte, error) {
51 buffer := new(bytes.Buffer)
52 err := rlp.Encode(buffer, []interface{}{
53 s.BlockHeader().ParentHash,
54 s.BlockHeader().UncleHash,
55 s.BlockHeader().Coinbase,
56 s.BlockHeader().Root,
57 s.BlockHeader().TxHash,
58 s.BlockHeader().ReceiptHash,
59 s.BlockHeader().Bloom,
60 s.BlockHeader().Difficulty,
61 s.BlockHeader().Number,
62 s.BlockHeader().GasLimit,
63 s.BlockHeader().GasUsed,
64 s.BlockHeader().Time,
65 s.BlockHeader().Extra,
66 })
67 return buffer.Bytes(), err
68}
69
70func (s *Share) Timestamp() *big.Int {
71 return s.blockHeader.Time

Callers 1

VerifyClaimMethod · 0.80

Implementers 2

testShareprotocol/test_share.go
Shareethereum/share.go

Calls 2

BlockHeaderMethod · 0.95
BytesMethod · 0.45

Tested by

no test coverage detected