Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions documentation.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
],
"swagger": "2.0",
"info": {
"title": "service/account.proto",
"title": "service/accountBalance.proto",
"version": "version not set"
},
"paths": {
Expand Down Expand Up @@ -754,7 +754,7 @@
},
"modelHost": {
"type": "object",
"title": "Host represent",
"title": "Host represent node and listed peers information",
"properties": {
"BlacklistedPeers": {
"type": "object",
Expand Down
2 changes: 1 addition & 1 deletion model/host.proto
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ option go_package = "github.com/zoobc/zoobc-core/common/model";
import "model/node.proto";
import "model/peer.proto";

// Host represent
// Host represent data sructure node and listed peers in node it's self
message Host {
Node Info = 1;
map<string, Peer> ResolvedPeers = 2;
Expand Down
6 changes: 6 additions & 0 deletions model/transaction.proto
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,12 @@ message GetTransactionsResponse {
repeated Transaction Transactions = 3;
}

// SendTransaction request in p2pCommunication service
message SendTransactionRequest {
bytes TransactionBytes = 1;
}

// TODO: Currently not yet used. Should we delete it?
message PostUnconfirmedTransactionRequest {
Transaction Transaction = 1;
uint32 ArrivalTimestamp = 2;
Expand Down
4 changes: 4 additions & 0 deletions service/p2pCommunication.proto
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,13 @@ option go_package = "github.com/zoobc/zoobc-core/common/service";
import "model/peer.proto";
import "model/node.proto";
import "model/empty.proto";
import "model/block.proto";
import "model/transaction.proto";

service P2PCommunication {
rpc GetPeerInfo(model.GetPeerInfoRequest) returns (model.Node) {}
rpc GetMorePeers(model.Empty) returns (model.GetMorePeersResponse) {}
rpc SendPeers(model.SendPeersRequest) returns (model.Empty) {}
rpc SendBlock (model.Block) returns (model.Empty) {}
rpc SendTransaction (model.SendTransactionRequest) returns (model.Empty) {}
}