Skip to content

Commit 5286def

Browse files
authored
serialization: more bumps (#3524)
Should really not have been releasing all these numbered versions before bumping eth1/2
1 parent 71959d4 commit 5286def

File tree

5 files changed

+9
-6
lines changed

5 files changed

+9
-6
lines changed

portal/rpc/rpc_portal_debug_history_api.nim

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ import
1111
json_rpc/rpcserver,
1212
../network/wire/portal_protocol,
1313
../eth_data/history_data_seeding,
14-
../database/content_db
14+
../database/content_db,
15+
./rpc_types
1516

1617
export rpcserver
1718

portal/rpc/rpc_types.nim

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,10 @@ import
1212
json_rpc/[jsonmarshal, errors],
1313
stew/byteutils,
1414
results,
15-
eth/p2p/discoveryv5/[routing_table, enr, node]
15+
eth/p2p/discoveryv5/[routing_table, enr, node],
16+
json_serialization/pkg/results
1617

17-
export jsonmarshal, routing_table, enr, node
18+
export jsonmarshal, routing_table, enr, node, results
1819

1920
# Portal Network JSON-RPC errors
2021

@@ -124,6 +125,7 @@ JrpcConv.automaticSerialization(int64, true)
124125
JrpcConv.automaticSerialization(uint64, true)
125126
JrpcConv.automaticSerialization(uint16, true)
126127
JrpcConv.automaticSerialization(seq, true)
128+
JrpcConv.automaticSerialization(string, true)
127129

128130
func getNodeInfo*(r: RoutingTable): NodeInfo =
129131
NodeInfo(enr: r.localNode.record, nodeId: r.localNode.id)

0 commit comments

Comments
 (0)