(b NumberAndHash)
| 41 | } |
| 42 | |
| 43 | func ToBlockID(b NumberAndHash) BlockID { |
| 44 | return BlockID{ |
| 45 | Hash: b.Hash(), |
| 46 | Number: b.NumberU64(), |
| 47 | } |
| 48 | } |
| 49 | |
| 50 | // blockInfo is a conversion type of types.Block turning it into a BlockInfo |
| 51 | type blockInfo struct{ *types.Block } |