Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

Commit b2c8391

Browse files
committed
Update core package for Super Economic
1 parent 13befc4 commit b2c8391

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

core/order.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ func processOfflineDirectOrder(n *OpenBazaarNode, wal wallet.Wallet, contract *p
390390
if !ok {
391391
return "", "", *big.NewInt(0), errors.New("invalid payment amount")
392392
}
393-
fpb := wal.GetFeePerByte(wallet.NORMAL)
393+
fpb := wal.GetFeePerByte(wallet.SUPER_ECONOMIC)
394394
f := new(big.Int).Mul(&fpb, big.NewInt(int64(EscrowReleaseSize)))
395395
t := new(big.Int).Div(total, big.NewInt(4))
396396

core/spend.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,8 @@ func (n *OpenBazaarNode) Spend(args *SpendRequest) (*SpendResponse, error) {
9797
feeLevel = wallet.NORMAL
9898
case "ECONOMIC":
9999
feeLevel = wallet.ECONOMIC
100+
case "SUPER_ECONOMIC":
101+
feeLevel = wallet.SUPER_ECONOMIC
100102
default:
101103
feeLevel = wallet.NORMAL
102104
}

0 commit comments

Comments
 (0)