github.com/codysnider/go-ethereum@v1.10.18-0.20220420071915-14f4ae99222a/cmd/devp2p/internal/ethtest/snapTypes.go (about) 1 package ethtest 2 3 import "github.com/ethereum/go-ethereum/eth/protocols/snap" 4 5 // GetAccountRange represents an account range query. 6 type GetAccountRange snap.GetAccountRangePacket 7 8 func (g GetAccountRange) Code() int { return 33 } 9 10 type AccountRange snap.AccountRangePacket 11 12 func (g AccountRange) Code() int { return 34 } 13 14 type GetStorageRanges snap.GetStorageRangesPacket 15 16 func (g GetStorageRanges) Code() int { return 35 } 17 18 type StorageRanges snap.StorageRangesPacket 19 20 func (g StorageRanges) Code() int { return 36 } 21 22 type GetByteCodes snap.GetByteCodesPacket 23 24 func (g GetByteCodes) Code() int { return 37 } 25 26 type ByteCodes snap.ByteCodesPacket 27 28 func (g ByteCodes) Code() int { return 38 } 29 30 type GetTrieNodes snap.GetTrieNodesPacket 31 32 func (g GetTrieNodes) Code() int { return 39 } 33 34 type TrieNodes snap.TrieNodesPacket 35 36 func (g TrieNodes) Code() int { return 40 }