github.com/theQRL/go-zond@v0.2.1/cmd/devp2p/internal/zondtest/snapTypes.go (about) 1 // Copyright 2022 The go-ethereum Authors 2 // This file is part of go-ethereum. 3 // 4 // go-ethereum is free software: you can redistribute it and/or modify 5 // it under the terms of the GNU General Public License as published by 6 // the Free Software Foundation, either version 3 of the License, or 7 // (at your option) any later version. 8 // 9 // go-ethereum is distributed in the hope that it will be useful, 10 // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 // GNU General Public License for more details. 13 // 14 // You should have received a copy of the GNU General Public License 15 // along with go-ethereum. If not, see <http://www.gnu.org/licenses/>. 16 17 package zondtest 18 19 // TODO(now.youtrack.cloud/issue/TGZ-6) 20 /* 21 import "github.com/theQRL/go-zond/zond/protocols/snap" 22 23 // GetAccountRange represents an account range query. 24 type GetAccountRange snap.GetAccountRangePacket 25 26 func (msg GetAccountRange) Code() int { return 33 } 27 func (msg GetAccountRange) ReqID() uint64 { return msg.ID } 28 29 type AccountRange snap.AccountRangePacket 30 31 func (msg AccountRange) Code() int { return 34 } 32 func (msg AccountRange) ReqID() uint64 { return msg.ID } 33 34 type GetStorageRanges snap.GetStorageRangesPacket 35 36 func (msg GetStorageRanges) Code() int { return 35 } 37 func (msg GetStorageRanges) ReqID() uint64 { return msg.ID } 38 39 type StorageRanges snap.StorageRangesPacket 40 41 func (msg StorageRanges) Code() int { return 36 } 42 func (msg StorageRanges) ReqID() uint64 { return msg.ID } 43 44 type GetByteCodes snap.GetByteCodesPacket 45 46 func (msg GetByteCodes) Code() int { return 37 } 47 func (msg GetByteCodes) ReqID() uint64 { return msg.ID } 48 49 type ByteCodes snap.ByteCodesPacket 50 51 func (msg ByteCodes) Code() int { return 38 } 52 func (msg ByteCodes) ReqID() uint64 { return msg.ID } 53 54 type GetTrieNodes snap.GetTrieNodesPacket 55 56 func (msg GetTrieNodes) Code() int { return 39 } 57 func (msg GetTrieNodes) ReqID() uint64 { return msg.ID } 58 59 type TrieNodes snap.TrieNodesPacket 60 61 func (msg TrieNodes) Code() int { return 40 } 62 func (msg TrieNodes) ReqID() uint64 { return msg.ID } 63 */