Skip to content

Commit 14ed2ef

Browse files
committed
Add min fee check to algokey part rekey
1 parent 7c7c8a0 commit 14ed2ef

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cmd/algokey/keyreg.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,10 @@ func run(params keyregCmdParams) error {
135135
params.lastValid = params.firstValid + txnLife
136136
}
137137

138+
if params.fee < minFee {
139+
return fmt.Errorf("the provided transaction fee (%d) is too low, the minimum fee is %d", params.fee, minFee)
140+
}
141+
138142
if !params.offline {
139143
if params.partkeyFile == "" {
140144
return errors.New("must provide --keyfile when registering participation keys")

0 commit comments

Comments
 (0)