Skip to content

Commit

Permalink
wallet: unexport const
Browse files Browse the repository at this point in the history
  • Loading branch information
peterjan committed Jan 30, 2024
1 parent d229bd7 commit 5422125
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions wallet/wallet.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ const (
)

const (
// BytesPerInput is the encoded size of a SiacoinInput and corresponding
// bytesPerInput is the encoded size of a SiacoinInput and corresponding
// TransactionSignature, assuming standard UnlockConditions.
BytesPerInput = 241
bytesPerInput = 241

// RedistributeBatchSize is the number of outputs to redistribute per txn to
// redistributeBatchSize is the number of outputs to redistribute per txn to
// avoid creating a txn that is too large.
RedistributeBatchSize = 10
redistributeBatchSize = 10
)

var (
Expand Down Expand Up @@ -513,7 +513,7 @@ func (sw *SingleAddressWallet) Redistribute(outputs int, amount, feePerByte type
// prepare defrag transactions
for outputs > 0 {
var txn types.Transaction
for i := 0; i < outputs && i < RedistributeBatchSize; i++ {
for i := 0; i < outputs && i < redistributeBatchSize; i++ {
txn.SiacoinOutputs = append(txn.SiacoinOutputs, types.SiacoinOutput{
Value: amount,
Address: sw.addr,
Expand All @@ -523,7 +523,7 @@ func (sw *SingleAddressWallet) Redistribute(outputs int, amount, feePerByte type

// estimate the fees
outputFees := feePerByte.Mul64(state.TransactionWeight(txn))
feePerInput := feePerByte.Mul64(BytesPerInput)
feePerInput := feePerByte.Mul64(bytesPerInput)

// collect outputs that cover the total amount
var inputs []types.SiacoinElement
Expand Down

0 comments on commit 5422125

Please sign in to comment.