Skip to content

Commit ccce216

Browse files
committed
Merge remote-tracking branch 'origin/master' into op-erigon
2 parents eee0ca1 + e9f5ed7 commit ccce216

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

remote/kv.proto

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ service KV {
5454
rpc Range(RangeReq) returns (Pairs);
5555
// rpc Stream(RangeReq) returns (stream Pairs);
5656

57+
rpc Sequence(SequenceReq) returns (SequenceReply);
5758

5859
//Temporal methods
5960
rpc GetLatest(GetLatestReq) returns (GetLatestReply); // can return latest value or as of given timestamp
@@ -182,6 +183,19 @@ message RangeReq {
182183
}
183184

184185

186+
// `kv.Sequence` method
187+
message SequenceReq {
188+
uint64 tx_id = 1; // returned by .Tx()
189+
190+
// query params
191+
string table = 2;
192+
}
193+
194+
message SequenceReply {
195+
uint64 value = 1;
196+
}
197+
198+
185199
//Temporal methods
186200
message GetLatestReq {
187201
uint64 tx_id = 1; // returned by .Tx()

txpool/txpool.proto

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,17 @@ message NonceReply {
8080
uint64 nonce = 2;
8181
}
8282

83+
message GetBlobsRequest{
84+
repeated types.H256 blob_hashes = 1;
85+
}
86+
message BlobAndProofV1 {
87+
bytes blob = 1;
88+
bytes proof = 2;
89+
}
90+
message GetBlobsReply{
91+
repeated BlobAndProofV1 blobs_and_proofs = 1;
92+
}
93+
8394
service Txpool {
8495
// Version returns the service version number
8596
rpc Version(google.protobuf.Empty) returns (types.VersionReply);
@@ -100,4 +111,6 @@ service Txpool {
100111
rpc Status(StatusRequest) returns (StatusReply);
101112
// returns nonce for given account
102113
rpc Nonce(NonceRequest) returns (NonceReply);
114+
// returns the list of blobs and proofs for a given list of blob hashes
115+
rpc GetBlobs(GetBlobsRequest) returns (GetBlobsReply);
103116
}

0 commit comments

Comments
 (0)