mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-27 22:28:21 +00:00
f9f54f012d
* Add revive and phoenix * store enode address to file, then read it from tester * store enode address to file, then read it from tester * rebase master * fix miss-type * dbg p2p-sub-protocol, add self-destruct test case * re-create blockFetcher * exit syncer loop and start new one * rebase to master * use core.GenerateChain * root miss-match * introduce reduceComplexity flag * fix transfer to 0 account * cleanup * test-case for intermediate cache * clean * clean * clean * fix handler panic Co-authored-by: Alexey Akhunov <akhounov@gmail.com> Co-authored-by: alex.sharov <alex.sharov@lazada.com>
32 lines
632 B
Go
32 lines
632 B
Go
package eth
|
|
|
|
import (
|
|
"github.com/ledgerwatch/turbo-geth/p2p"
|
|
)
|
|
|
|
const (
|
|
dbg1 = 1
|
|
)
|
|
|
|
var DebugName = "dbg" // Parity only supports 3 letter capabilities
|
|
var DebugVersions = []uint{dbg1}
|
|
var DebugLengths = map[uint]uint64{dbg1: 2}
|
|
|
|
const DebugMaxMsgSize = 10 * 1024 * 1024
|
|
|
|
// Debug customization for simulator, move it to sub-protocol
|
|
const (
|
|
DebugSetGenesisMsg = 0x00
|
|
)
|
|
|
|
type debugPeer struct {
|
|
*p2p.Peer
|
|
rw p2p.MsgReadWriter
|
|
}
|
|
|
|
// SendByteCode sends a BytecodeCode message.
|
|
func (p *debugPeer) SendByteCode(id uint64, data [][]byte) error {
|
|
msg := bytecodeMsg{ID: id, Code: data}
|
|
return p2p.Send(p.rw, BytecodeCode, msg)
|
|
}
|