Skip to content

Commit

Permalink
Restore sub 1 Dusk
Browse files Browse the repository at this point in the history
  • Loading branch information
fed-franz committed May 18, 2023
1 parent d1c3c4c commit aaf28f7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/core/consensus/user/sortition.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import (
"math"
"math/big"

"github.com/dusk-network/dusk-blockchain/pkg/config"
"github.com/dusk-network/dusk-blockchain/pkg/util"
"github.com/dusk-network/dusk-blockchain/pkg/util/nativeutils/sortedset"
"github.com/dusk-network/dusk-crypto/hash"
Expand Down Expand Up @@ -150,7 +151,7 @@ func (p Provisioners) CreateVotingCommittee(seed []byte, round uint64, step uint

// Deduct up to 1 DUSK from the extracted member's stake.
m := p.GetMember(blsPk)
subtracted := m.SubtractFromStake(10)
subtracted := m.SubtractFromStake(1 * config.DUSK)

// Subtract the deducted amount from the total weight, to ensure consistency.
subtractFromTotalWeight(W, subtracted)
Expand Down

0 comments on commit aaf28f7

Please sign in to comment.