Skip to content

fix(db): stop creating the all-zeroes dir on KDF start#2218

Merged
shamardy merged 1 commit intodevfrom
fix-zeroes-dir
Sep 13, 2024
Merged

fix(db): stop creating the all-zeroes dir on KDF start#2218
shamardy merged 1 commit intodevfrom
fix-zeroes-dir

Conversation

@shamardy
Copy link
Copy Markdown
Collaborator

KDF was creating the default all zeroes db dir on start which is not used, this PR fixes this.

@laruh
Copy link
Copy Markdown

laruh commented Sep 13, 2024

The issue with zero directory is fixed, I’m still confused about the behavior of the "dbdir" config parameter.

I provided "dbdir":"./kdf_test", it correctly found kdf_test folder in home path, but program reused kdf_test as a folder name for dbs. why?
Screenshot 2024-09-13 at 18 45 55
I expected something like ./kdf_test/DB

UPD: got it, PathBuf::from(dbdir) created a relative path. Everything is correct

@shamardy
Copy link
Copy Markdown
Collaborator Author

I’m still confused about the behavior of the "dbdir" config parameter.

It's used to specify the DB dir only, so you should use "dbdir":"./kdf_test/DB" if you want the db dir to be DB
ref. https://komodoplatform.com/en/docs/komodo-defi-framework/setup/configure-mm2-json/

@laruh
Copy link
Copy Markdown

laruh commented Sep 13, 2024

I’m still confused about the behavior of the "dbdir" config parameter.

It's used to specify the DB dir only, so you should use "dbdir":"./kdf_test/DB" if you want the db dir to be DB ref. https://komodoplatform.com/en/docs/komodo-defi-framework/setup/configure-mm2-json/

yep, I just realised that I needed to specify absolute or relative path

Copy link
Copy Markdown

@laruh laruh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix!

@shamardy shamardy merged commit 079ea5e into dev Sep 13, 2024
@shamardy shamardy deleted the fix-zeroes-dir branch September 13, 2024 12:11
dimxy pushed a commit that referenced this pull request Oct 4, 2024
* dev:
  fix(orders): fix cancel order race condition using time-based cache (#2232)
  fix(legacy-swap): taker failed spend maker payment marked as failed (#2199)
  chore(adex-cli): deprecate adex-cli (#2234)
  feat(new-RPC): connection healthcheck implementation for peers  (#2194)
  fix(proxy-signature): add message lifetime overflows (#2233)
  feat(CI): handle remote files in a safer way (#2217)
  chore(doc): update issue address in README (#2227)
  fix(merge): remove duplicated db_root function (#2229)
  feat(wallets): add `get_wallet_names` rpc (#2202)
  chore(tests): don't use `.wait()` and use `block_on` instead (#2220)
  fix(native-rpc): remove escaped response body (#2219)
  fix(clippy): fix coins mod clippy warnings in wasm (#2224)
  feat(core): handling CTRL-C signal with graceful shutdown (#2213)
  docs(README): fix typos (#2212)
  remove the non-sense arguments (#2216)
  fix(db): stop creating the all-zeroes dir on KDF start (#2218)
dimxy pushed a commit that referenced this pull request Oct 4, 2024
* dev:
  fix(orders): fix cancel order race condition using time-based cache (#2232)
  fix(legacy-swap): taker failed spend maker payment marked as failed (#2199)
  chore(adex-cli): deprecate adex-cli (#2234)
  feat(new-RPC): connection healthcheck implementation for peers  (#2194)
  fix(proxy-signature): add message lifetime overflows (#2233)
  feat(CI): handle remote files in a safer way (#2217)
  chore(doc): update issue address in README (#2227)
  fix(merge): remove duplicated db_root function (#2229)
  feat(wallets): add `get_wallet_names` rpc (#2202)
  chore(tests): don't use `.wait()` and use `block_on` instead (#2220)
  fix(native-rpc): remove escaped response body (#2219)
  fix(clippy): fix coins mod clippy warnings in wasm (#2224)
  feat(core): handling CTRL-C signal with graceful shutdown (#2213)
  docs(README): fix typos (#2212)
  remove the non-sense arguments (#2216)
  fix(db): stop creating the all-zeroes dir on KDF start (#2218)
dimxy pushed a commit that referenced this pull request Oct 17, 2024
* dev:
  fix(cosmos): fix tx broadcasting error (#2238)
  chore(solana): remove solana implementation (#2239)
  chore(cli): remove leftover subcommands from help message (#2235)
  fix(orders): fix cancel order race condition using time-based cache (#2232)
  fix(legacy-swap): taker failed spend maker payment marked as failed (#2199)
  chore(adex-cli): deprecate adex-cli (#2234)
  feat(new-RPC): connection healthcheck implementation for peers  (#2194)
  fix(proxy-signature): add message lifetime overflows (#2233)
  feat(CI): handle remote files in a safer way (#2217)
  chore(doc): update issue address in README (#2227)
  fix(merge): remove duplicated db_root function (#2229)
  feat(wallets): add `get_wallet_names` rpc (#2202)
  chore(tests): don't use `.wait()` and use `block_on` instead (#2220)
  fix(native-rpc): remove escaped response body (#2219)
  fix(clippy): fix coins mod clippy warnings in wasm (#2224)
  feat(core): handling CTRL-C signal with graceful shutdown (#2213)
  docs(README): fix typos (#2212)
  remove the non-sense arguments (#2216)
  fix(db): stop creating the all-zeroes dir on KDF start (#2218)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants