Skip to content

Commit

Permalink
Fix decoding bug
Browse files Browse the repository at this point in the history
  • Loading branch information
mike76-dev committed May 9, 2024
1 parent f1a7851 commit 213a732
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ endif

ldflags= \
-X "github.com/mike76-dev/sia-satellite/internal/build.BinaryName=satd" \
-X "github.com/mike76-dev/sia-satellite/internal/build.NodeVersion=0.11.3" \
-X "github.com/mike76-dev/sia-satellite/internal/build.NodeVersion=0.11.4" \
-X "github.com/mike76-dev/sia-satellite/internal/build.GitRevision=${GIT_DIRTY}${GIT_REVISION}" \
-X "github.com/mike76-dev/sia-satellite/internal/build.BuildTime=${BUILD_TIME}"

Expand Down
4 changes: 2 additions & 2 deletions modules/provider/encoding.go
Original file line number Diff line number Diff line change
Expand Up @@ -458,11 +458,11 @@ func (usr *updateSettingsRequest) DecodeFrom(d *types.Decoder) {
usr.BackupFileMetadata = d.ReadBool()
usr.AutoRepairFiles = d.ReadBool()
usr.ProxyUploads = d.ReadBool()
if usr.AutoRenewContracts || usr.AutoRepairFiles {
if usr.AutoRenewContracts || usr.BackupFileMetadata || usr.AutoRepairFiles || usr.ProxyUploads {
sk := d.ReadBytes()
usr.PrivateKey = types.PrivateKey(sk)
}
if usr.AutoRepairFiles {
if usr.BackupFileMetadata || usr.AutoRepairFiles || usr.ProxyUploads {
ak := d.ReadBytes()
usr.AccountKey = types.PrivateKey(ak)
}
Expand Down

0 comments on commit 213a732

Please sign in to comment.