collect meta from server config
This commit is contained in:
parent
4604a7bac9
commit
a95e4cd6e9
|
@ -260,7 +260,6 @@ function useConfig (walletDef) {
|
|||
|
||||
const saveConfig = useCallback(async (newConfig, { logger, skipTests }) => {
|
||||
const priorityOnly = skipTests
|
||||
const { autoWithdrawThreshold, autoWithdrawMaxFeePercent, priority, enabled } = newConfig
|
||||
try {
|
||||
// gather configs
|
||||
|
||||
|
@ -287,10 +286,11 @@ function useConfig (walletDef) {
|
|||
// check if it misses send or receive configs
|
||||
const isReadyToSend = canSend && isConfigured({ fields: walletDef.fields, config: newConfig, clientOnly: true })
|
||||
const isReadyToReceive = canReceive && isConfigured({ fields: walletDef.fields, config: newConfig, serverOnly: true })
|
||||
const { autoWithdrawThreshold, autoWithdrawMaxFeePercent, priority, enabled } = newServerConfig
|
||||
|
||||
// console.log('New client config', newClientConfig)
|
||||
// console.log('New server config', newServerConfig)
|
||||
// console.log('Sender', isReadyToSend, 'Receiver', isReadyToReceive, 'enabled', enabled)
|
||||
// console.log('Sender', isReadyToSend, 'Receiver', isReadyToReceive, 'enabled', enabled, autoWithdrawThreshold, autoWithdrawMaxFeePercent, priority)
|
||||
|
||||
// client test
|
||||
if (!skipTests && isReadyToSend) {
|
||||
|
|
Loading…
Reference in New Issue