Skip to content

Commit 67e7d2f

Browse files
committed
update core
1 parent ff3cac4 commit 67e7d2f

File tree

4 files changed

+11
-6
lines changed

4 files changed

+11
-6
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
default: minor
3+
---
4+
5+
# Switched to max contract size.

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ require (
66
github.com/quic-go/quic-go v0.59.0
77
github.com/quic-go/webtransport-go v0.10.0
88
go.etcd.io/bbolt v1.4.3
9-
go.sia.tech/core v0.19.0
9+
go.sia.tech/core v0.19.1-0.20260122000638-bfbefbf60715
1010
go.sia.tech/mux v1.4.0
1111
go.uber.org/zap v1.27.1
1212
golang.org/x/crypto v0.47.0

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ github.com/stretchr/testify v1.11.1 h1:7s2iGBzp5EwR7/aIZr8ao5+dra3wiQyKjjFuvgVKu
1414
github.com/stretchr/testify v1.11.1/go.mod h1:wZwfW3scLgRK+23gO65QZefKpKQRnfz6sD981Nm4B6U=
1515
go.etcd.io/bbolt v1.4.3 h1:dEadXpI6G79deX5prL3QRNP6JB8UxVkqo4UPnHaNXJo=
1616
go.etcd.io/bbolt v1.4.3/go.mod h1:tKQlpPaYCVFctUIgFKFnAlvbmB3tpy1vkTnDWohtc0E=
17-
go.sia.tech/core v0.19.0 h1:mj/lsixiI25hNTq1FzLHs94BCewTABulkqq2pHSHmdo=
18-
go.sia.tech/core v0.19.0/go.mod h1:Gge/hpiE9m1ugPLz8RR1ZMoYZTPWLEdRWviHr/4rVeA=
17+
go.sia.tech/core v0.19.1-0.20260122000638-bfbefbf60715 h1:rOD7P3OrPwpQddyhkhWbewouAuekNKx0z/KCLm1Ufo0=
18+
go.sia.tech/core v0.19.1-0.20260122000638-bfbefbf60715/go.mod h1:hqdJ1o37uC+iRf02WD22gBMht2Q658QsQQwKSJ+4ZC8=
1919
go.sia.tech/mux v1.4.0 h1:LgsLHtn7l+25MwrgaPaUCaS8f2W2/tfvHIdXps04sVo=
2020
go.sia.tech/mux v1.4.0/go.mod h1:iNFi9ifFb2XhuD+LF4t2HBb4Mvgq/zIPKqwXU/NlqHA=
2121
go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto=

rhp/v4/server.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -607,7 +607,7 @@ func (s *Server) handleRPCFormContract(stream net.Conn) error {
607607

608608
ourKey := s.hostKey.PublicKey()
609609
tip := s.chain.Tip()
610-
if err := req.Validate(ourKey, tip, settings.MaxCollateral, settings.MaxContractDuration); err != nil {
610+
if err := req.Validate(ourKey, tip, settings.MaxContractDuration); err != nil {
611611
return err
612612
}
613613
prices := req.Prices
@@ -768,7 +768,7 @@ func (s *Server) handleRPCRefreshContract(stream net.Conn, partial bool) error {
768768

769769
// validate the request
770770
cs := s.chain.TipState()
771-
if err := req.Validate(s.hostKey.PublicKey(), cs.Index, state.Revision, settings.MaxCollateral, partial); err != nil {
771+
if err := req.Validate(s.hostKey.PublicKey(), cs.Index, state.Revision, partial); err != nil {
772772
return rhp4.NewRPCError(rhp4.ErrorCodeBadRequest, err.Error())
773773
}
774774

@@ -948,7 +948,7 @@ func (s *Server) handleRPCRenewContract(stream net.Conn) error {
948948

949949
// validate the request
950950
tip := s.chain.Tip()
951-
if err := req.Validate(s.hostKey.PublicKey(), tip, state.Revision, settings.MaxCollateral, settings.MaxContractDuration); err != nil {
951+
if err := req.Validate(s.hostKey.PublicKey(), tip, state.Revision, settings.MaxContractDuration); err != nil {
952952
return rhp4.NewRPCError(rhp4.ErrorCodeBadRequest, err.Error())
953953
}
954954

0 commit comments

Comments
 (0)