diff --git a/cmd/kaspawallet/daemon/server/create_unsigned_transaction.go b/cmd/kaspawallet/daemon/server/create_unsigned_transaction.go index cd44205b34..00666347b4 100644 --- a/cmd/kaspawallet/daemon/server/create_unsigned_transaction.go +++ b/cmd/kaspawallet/daemon/server/create_unsigned_transaction.go @@ -200,7 +200,7 @@ func (s *server) selectUTXOsWithPreselected(preSelectedUTXOs []*walletUTXO, allo if isSendAll { estimatedRecipientValue = totalValue } - + fee, err = s.estimateFee(selectedUTXOs, feeRate, maxFee, estimatedRecipientValue) if err != nil { return false, err @@ -261,8 +261,8 @@ func (s *server) selectUTXOsWithPreselected(preSelectedUTXOs []*walletUTXO, allo } func (s *server) estimateFee(selectedUTXOs []*libkaspawallet.UTXO, feeRate float64, maxFee uint64, recipientValue uint64) (uint64, error) { - fakePubKey := [util.PublicKeySize]byte{} - fakeAddr, err := util.NewAddressPublicKey(fakePubKey[:], s.params.Prefix) + fakePubKey := [util.PublicKeySizeECDSA]byte{} + fakeAddr, err := util.NewAddressPublicKeyECDSA(fakePubKey[:], s.params.Prefix) // We assume the worst case where the recipient address is ECDSA. In this case the scriptPubKey will be the longest. if err != nil { return 0, err } diff --git a/version/version.go b/version/version.go index e3122c68fc..abcb183d9d 100644 --- a/version/version.go +++ b/version/version.go @@ -17,7 +17,7 @@ const ( // appBuild is defined as a variable so it can be overridden during the build // process with '-ldflags "-X github.com/kaspanet/kaspad/version.appBuild=foo"' if needed. // It MUST only contain characters from validCharacters. -var appBuild string = "rc6" +var appBuild string = "rc7" var version = "" // string used for memoization of version