Skip to content

Commit

Permalink
rhp4: remove incremented revision number. It was moved to PayWithCont…
Browse files Browse the repository at this point in the history
…ract
  • Loading branch information
n8maninger committed Sep 26, 2024
1 parent d91a33d commit f7c5de1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ go 1.23.0

require (
go.etcd.io/bbolt v1.3.11
go.sia.tech/core v0.4.7-0.20240917173008-41a66391e272
go.sia.tech/core v0.4.7-0.20240926170123-801d36064633
go.sia.tech/mux v1.3.0
go.uber.org/zap v1.27.0
golang.org/x/crypto v0.27.0
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ github.com/stretchr/testify v1.8.1 h1:w7B6lhMri9wdJUVmEZPGGhZzrYTPvgJArz7wNPgYKs
github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4=
go.etcd.io/bbolt v1.3.11 h1:yGEzV1wPz2yVCLsD8ZAiGHhHVlczyC9d1rP43/VCRJ0=
go.etcd.io/bbolt v1.3.11/go.mod h1:dksAq7YMXoljX0xu6VF5DMZGbhYYoLUalEiSySYAS4I=
go.sia.tech/core v0.4.7-0.20240917173008-41a66391e272 h1:IGlUTj7jhvum5oQ0mUoZiaDmB5ErPODWW5Wc/P1MAJQ=
go.sia.tech/core v0.4.7-0.20240917173008-41a66391e272/go.mod h1:j2Ke8ihV8or7d2VDrFZWcCkwSVHO0DNMQJAGs9Qop2M=
go.sia.tech/core v0.4.7-0.20240926170123-801d36064633 h1:zXYaHDNHk8dgkWLIwvYz/TWgZEP8L+1hLuhK5crm1Fg=
go.sia.tech/core v0.4.7-0.20240926170123-801d36064633/go.mod h1:j2Ke8ihV8or7d2VDrFZWcCkwSVHO0DNMQJAGs9Qop2M=
go.sia.tech/mux v1.3.0 h1:hgR34IEkqvfBKUJkAzGi31OADeW2y7D6Bmy/Jcbop9c=
go.sia.tech/mux v1.3.0/go.mod h1:I46++RD4beqA3cW9Xm9SwXbezwPqLvHhVs9HLpDtt58=
go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto=
Expand Down
1 change: 0 additions & 1 deletion rhp/v4/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,6 @@ func (s *Server) handleRPCFundAccounts(stream net.Conn) error {
}

fc := state.Revision
fc.RevisionNumber++
if err := rhp4.PayWithContract(&fc, totalDeposits, types.ZeroCurrency); err != nil {
return fmt.Errorf("failed to pay with contract: %w", err)
}
Expand Down

0 comments on commit f7c5de1

Please sign in to comment.