mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-01-04 06:23:06 +00:00
feat(marketplace) - add command line arg for maxPriorityFeePerGas (#1189)
This commit is contained in:
parent
1bea94c390
commit
3e17207a0b
@ -83,7 +83,9 @@ proc bootstrapInteractions(s: CodexServer): Future[void] {.async.} =
|
|||||||
error "Persistence enabled, but no Ethereum account was set"
|
error "Persistence enabled, but no Ethereum account was set"
|
||||||
quit QuitFailure
|
quit QuitFailure
|
||||||
|
|
||||||
let provider = JsonRpcProvider.new(config.ethProvider)
|
let provider = JsonRpcProvider.new(
|
||||||
|
config.ethProvider, maxPriorityFeePerGas = config.maxPriorityFeePerGas.u256
|
||||||
|
)
|
||||||
await waitForSync(provider)
|
await waitForSync(provider)
|
||||||
var signer: Signer
|
var signer: Signer
|
||||||
if account =? config.ethAccount:
|
if account =? config.ethAccount:
|
||||||
|
|||||||
@ -44,7 +44,7 @@ import ./utils
|
|||||||
import ./nat
|
import ./nat
|
||||||
import ./utils/natutils
|
import ./utils/natutils
|
||||||
|
|
||||||
from ./contracts/config import DefaultRequestCacheSize
|
from ./contracts/config import DefaultRequestCacheSize, DefaultMaxPriorityFeePerGas
|
||||||
from ./validationconfig import MaxSlots, ValidationGroups
|
from ./validationconfig import MaxSlots, ValidationGroups
|
||||||
|
|
||||||
export units, net, codextypes, logutils, completeCmdArg, parseCmdArg, NatConfig
|
export units, net, codextypes, logutils, completeCmdArg, parseCmdArg, NatConfig
|
||||||
@ -52,7 +52,7 @@ export ValidationGroups, MaxSlots
|
|||||||
|
|
||||||
export
|
export
|
||||||
DefaultQuotaBytes, DefaultBlockTtl, DefaultBlockInterval, DefaultNumBlocksPerInterval,
|
DefaultQuotaBytes, DefaultBlockTtl, DefaultBlockInterval, DefaultNumBlocksPerInterval,
|
||||||
DefaultRequestCacheSize
|
DefaultRequestCacheSize, DefaultMaxPriorityFeePerGas
|
||||||
|
|
||||||
type ThreadCount* = distinct Natural
|
type ThreadCount* = distinct Natural
|
||||||
|
|
||||||
@ -370,6 +370,15 @@ type
|
|||||||
hidden
|
hidden
|
||||||
.}: uint16
|
.}: uint16
|
||||||
|
|
||||||
|
maxPriorityFeePerGas* {.
|
||||||
|
desc:
|
||||||
|
"Sets the default maximum priority fee per gas for Ethereum EIP-1559 transactions, in wei, when not provided by the network.",
|
||||||
|
defaultValue: DefaultMaxPriorityFeePerGas,
|
||||||
|
defaultValueDesc: $DefaultMaxPriorityFeePerGas,
|
||||||
|
name: "max-priority-fee-per-gas",
|
||||||
|
hidden
|
||||||
|
.}: uint64
|
||||||
|
|
||||||
case persistenceCmd* {.defaultValue: noCmd, command.}: PersistenceCmd
|
case persistenceCmd* {.defaultValue: noCmd, command.}: PersistenceCmd
|
||||||
of PersistenceCmd.prover:
|
of PersistenceCmd.prover:
|
||||||
circuitDir* {.
|
circuitDir* {.
|
||||||
|
|||||||
@ -5,6 +5,7 @@ import pkg/questionable/results
|
|||||||
export contractabi
|
export contractabi
|
||||||
|
|
||||||
const DefaultRequestCacheSize* = 128.uint16
|
const DefaultRequestCacheSize* = 128.uint16
|
||||||
|
const DefaultMaxPriorityFeePerGas* = 1_000_000_000.uint64
|
||||||
|
|
||||||
type
|
type
|
||||||
MarketplaceConfig* = object
|
MarketplaceConfig* = object
|
||||||
|
|||||||
2
vendor/nim-ethers
vendored
2
vendor/nim-ethers
vendored
@ -1 +1 @@
|
|||||||
Subproject commit bbced4673316763c6ef931b4d0a08069cde2474c
|
Subproject commit 30871c7b1d5784e36c51223bd36ef6f1fffcc030
|
||||||
Loading…
x
Reference in New Issue
Block a user