mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-24 20:47:16 +00:00
6a1f000cf7
* Remove interfaces * Squashed 'interfaces/' content from commit 0941b0992 git-subtree-dir: interfaces git-subtree-split: 0941b09926db64934ba7dd161fb9ca2a20ba25b8 * Change generation accordingly Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
26 lines
695 B
Protocol Buffer
26 lines
695 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
import "google/protobuf/empty.proto";
|
|
|
|
package txpool;
|
|
|
|
message TxHashes { repeated bytes hashes = 1; }
|
|
|
|
message ImportRequest { repeated bytes txs = 1; }
|
|
|
|
enum ImportResult {
|
|
SUCCESS = 0; ALREADY_EXISTS = 1; FEE_TOO_LOW = 2; STALE = 3; INVALID = 4;
|
|
INTERNAL_ERROR = 5;
|
|
}
|
|
|
|
message ImportReply { repeated ImportResult imported = 1; }
|
|
|
|
message GetTransactionsRequest { repeated bytes hashes = 1; }
|
|
message GetTransactionsReply { repeated bytes txs = 1; }
|
|
|
|
service Txpool {
|
|
rpc FindUnknownTransactions(TxHashes) returns(TxHashes);
|
|
rpc ImportTransactions(ImportRequest) returns(ImportReply);
|
|
rpc GetTransactions(GetTransactionsRequest) returns(GetTransactionsReply);
|
|
}
|