Skip to content

Commit

Permalink
Merge pull request #1269 from libp2p/reservation-required
Browse files Browse the repository at this point in the history
require the expiration field of the circuit v2 Reservation protobuf
  • Loading branch information
marten-seemann authored Dec 19, 2021
2 parents 9bb973c + fcf0d42 commit 5155c77
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 56 deletions.
102 changes: 47 additions & 55 deletions p2p/protocol/circuitv2/pb/circuit.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion p2p/protocol/circuitv2/pb/circuit.proto
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ message Peer {
}

message Reservation {
optional uint64 expire = 1; // Unix expiration time (UTC)
required uint64 expire = 1; // Unix expiration time (UTC)
repeated bytes addrs = 2; // relay addrs for reserving peer
optional bytes voucher = 3; // reservation voucher
}
Expand Down

0 comments on commit 5155c77

Please sign in to comment.