Skip to content

Commit 5155c77

Browse files
Merge pull request #1269 from libp2p/reservation-required
require the expiration field of the circuit v2 Reservation protobuf
2 parents 9bb973c + fcf0d42 commit 5155c77

File tree

2 files changed

+48
-56
lines changed

2 files changed

+48
-56
lines changed

p2p/protocol/circuitv2/pb/circuit.pb.go

Lines changed: 47 additions & 55 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

p2p/protocol/circuitv2/pb/circuit.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ message Peer {
3838
}
3939

4040
message Reservation {
41-
optional uint64 expire = 1; // Unix expiration time (UTC)
41+
required uint64 expire = 1; // Unix expiration time (UTC)
4242
repeated bytes addrs = 2; // relay addrs for reserving peer
4343
optional bytes voucher = 3; // reservation voucher
4444
}

0 commit comments

Comments
 (0)