WIP: Add wallet tool test #14283

pull promag wants to merge 3 commits into bitcoin:master from promag:2018-09-test-wallet_tool changing 12 files +459 −10
  1. promag commented at 0:39 am on September 21, 2018: member
    Based on #13926, this PR adds a test for the wallet tool.
  2. [PoC] Add wallet inspection and modification tool "bitcoin-wallet-tool" db2678145a
  3. qa: Add wallet tool test 96b2ef77d4
  4. DrahtBot commented at 3:39 am on September 21, 2018: member
    • #14284 (build: Add MSVC project files for bitcoin-wallet-tool by ken2812221)
    • #13926 ([Tools] bitcoin-wallet - a tool for creating and managing wallets offline by jnewbery)
    • #13100 (gui: Add dynamic wallets support by promag)
    • #12246 (Bugfix: Only run bitcoin-tx tests when bitcoin-tx is enabled by luke-jr)

    If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.

  5. fixup! qa: Add wallet tool test 70fca51816
  6. jnewbery commented at 5:50 pm on September 21, 2018: member
    Thanks @promag - I’ll review this later.
  7. in src/wallet/wallettool.cpp:125 in 70fca51816
    120+        std::string backup_filename;
    121+        if (!WalletBatch::Recover(path, (void*)&dummyWallet, WalletBatch::RecoverKeysOnlyFilter, backup_filename)) {
    122+            fprintf(stderr, "Salvage failed\n");
    123+            return false;
    124+        }
    125+        //TODO, set wallets best block to genesis to enforce a rescan
    


    practicalswift commented at 7:01 pm on September 22, 2018:
    02018-09-22 20:39:40 cpplint(pr=14283): src/wallet/wallettool.cpp:125:  Should have a space between // and comment  [whitespace/comments] [4]
    
  8. in test/functional/tool_wallet.py:21 in 70fca51816
    16+    def set_test_params(self):
    17+        self.num_nodes = 1
    18+
    19+    def process(self, *args):
    20+        binary = self.config["environment"]["BUILDDIR"] + '/src/bitcoin-wallet-tool' + self.config["environment"]["EXEEXT"]
    21+        input = None
    


    practicalswift commented at 12:02 pm on September 27, 2018:
    Remove this line. It redefines the built-in function input. Furthermore it is unused :-)
  9. jnewbery commented at 2:20 pm on September 27, 2018: member
    Looks good. Thanks @promag! I’ve cherry picked and squashed your commits into #13926 . I’ll add my review comments there.
  10. promag closed this on Sep 27, 2018

  11. promag deleted the branch on Sep 27, 2018
  12. MarcoFalke locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-07-03 10:13 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me