Skip to content

Commit fabad36

Browse files
committed
Add basic bcc protocol scaffold
1 parent d9e8e18 commit fabad36

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

trinity/protocol/bcc/proto.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import logging
2+
3+
from p2p.protocol import Protocol
4+
5+
from trinity.protocol.bcc.commands import (
6+
Status,
7+
GetBeaconBlocks,
8+
BeaconBlocks,
9+
AttestationRecords,
10+
)
11+
12+
13+
class BCCProtocol(Protocol):
14+
name = "bcc"
15+
version = 0
16+
_commands = [Status, GetBeaconBlocks, BeaconBlocks, AttestationRecords]
17+
cmd_length = 4
18+
logger = logging.getLogger("p2p.bcc.BCCProtocol")

0 commit comments

Comments
 (0)