Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add wallet utxos subcommand #259

Merged
merged 72 commits into from
Aug 9, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
72 commits
Select commit Hold shift + click to select a range
3e13678
Add wallet utxos subcommand
terror Jul 20, 2022
f8b6915
Merge branch 'master' into utxos
terror Jul 21, 2022
ed59bd2
Semi-working
terror Jul 21, 2022
0b7ac8f
Merge remote-tracking branch 'refs/remotes/origin/utxos' into utxos
terror Jul 21, 2022
3dba2af
Initial work
terror Jul 22, 2022
79ad708
Get first_coinbase_transaction working
terror Jul 22, 2022
646c9ee
Fix two more list tests
terror Jul 25, 2022
c3c418c
Fix a few find tests
terror Jul 25, 2022
5e43541
Get 4th list test working
terror Jul 26, 2022
9f498b7
Start adding bdk wallet in tests
terror Jul 27, 2022
6cfd1f4
Cleanup
terror Jul 27, 2022
b3f39c5
Merge branch 'master' into regtest
terror Jul 27, 2022
6e6b1d0
Semi-working
terror Jul 27, 2022
1fdbc82
Clearer output
terror Jul 27, 2022
be6fb0e
Get first part of split_ranges_are_tracked_correctly working
terror Jul 27, 2022
1ad4cc2
Fix merge_ranges test
terror Jul 28, 2022
041695d
Fix fee_paying_transaction_range
terror Jul 28, 2022
2868785
Small refactors
terror Jul 29, 2022
94f84fb
Fix null_output test
terror Jul 29, 2022
01417c3
Use git dependency
terror Jul 29, 2022
c9fc017
Fix two_fee test
terror Jul 29, 2022
380c647
Fix null_input test
terror Jul 29, 2022
5aa0cde
Get all list tests to pass invidiually
terror Jul 29, 2022
c8cc1df
Fix find tests
terror Jul 29, 2022
f106d2a
Fix info and index tests
terror Jul 29, 2022
efcfcc2
Get server tests to pass
terror Jul 29, 2022
26b67cc
Only kill process if healthy
terror Jul 30, 2022
353b78f
Get all non-ignored tests to pass
terror Aug 1, 2022
8447056
Merge branch 'master' into regtest
terror Aug 1, 2022
0ad28c0
Make tests slightly faster
terror Aug 1, 2022
1eca6dc
Add our own bitcoind wrapper
casey Aug 1, 2022
8219df5
Merge branch 'master' into regtest
terror Aug 1, 2022
10f92cc
Remove todo's
terror Aug 1, 2022
85e95ec
Merge branch 'master' into utxos
terror Aug 2, 2022
ff89123
Add logging
terror Aug 2, 2022
f268fea
Get tests to pass individually again
terror Aug 2, 2022
32d8b36
Merge branch 'regtest' into utxos
terror Aug 2, 2022
ce154d2
Small refactors
terror Aug 2, 2022
295c19f
Refactor to use State object
casey Aug 2, 2022
9443fe9
Use unwrap
casey Aug 2, 2022
eae8092
Move state and test into own files
casey Aug 2, 2022
bba0e9d
More stuff
casey Aug 2, 2022
28f033b
Fix
casey Aug 2, 2022
4590aa6
Stuff
casey Aug 2, 2022
6c21615
Get first server test working
casey Aug 2, 2022
1624643
Get tests to pass
terror Aug 2, 2022
f16a003
Strip suffix error
terror Aug 2, 2022
30b5dfd
Generate 101 blocks, output txid:vout
terror Aug 3, 2022
14f13ed
Try not to leak write transactions
casey Aug 4, 2022
e2a620b
Try updating dependencies
casey Aug 4, 2022
ef09f26
Initialize logger in state
casey Aug 4, 2022
0a88ec1
Increase redb database size
casey Aug 4, 2022
f5cbdae
Merge branch 'master' into regtest
terror Aug 8, 2022
5d0b30c
Fix more tests
terror Aug 8, 2022
6c563ea
Fix outputs
terror Aug 8, 2022
f9fbb79
Transactions still broken
terror Aug 8, 2022
557d5bd
All server tests pass
terror Aug 8, 2022
09895ba
Fix ci breakage
terror Aug 8, 2022
2e31c18
Run with a single test thread
terror Aug 8, 2022
c37b945
Install bitcoind
terror Aug 8, 2022
f8b84bf
Bitcoin -> Bitcoind
terror Aug 8, 2022
0da8ce7
Install sqlite
terror Aug 8, 2022
e3fd7e3
Load server on first request
terror Aug 9, 2022
f11f0a6
Merge branch 'regtest' into utxos
terror Aug 9, 2022
ee58902
Fix import errors
terror Aug 9, 2022
77aa8c5
Fix regex
terror Aug 9, 2022
8b6322e
Clippy
terror Aug 9, 2022
c8a21a6
Install bitcoin from release on linux
casey Aug 9, 2022
e58139f
Merge branch 'regtest' into utxos
terror Aug 9, 2022
da0ecab
Merge branch 'master' into utxos
terror Aug 9, 2022
64c86eb
Fix mergies
terror Aug 9, 2022
a81be37
Address review comments
terror Aug 9, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix info and index tests
  • Loading branch information
terror committed Jul 29, 2022
commit f106d2a024727d772eb11b9e234bcfdae4d5c12a
26 changes: 2 additions & 24 deletions tests/index.rs
Original file line number Diff line number Diff line change
@@ -1,32 +1,10 @@
use super::*;

#[test]
fn incremental_indexing() -> Result {
let output = Test::new()?
.command("list 0396bc915f141f7de025f72ae9b6bb8dcdb5f444fc245d8fac486ba67a38eef9:0")
.expected_stdout("[0,5000000000)\n")
.block()
.output()?;

// assert_eq!(output.calls, &["getblockhash", "getblock", "getblockhash"]);

let _output = Test::with_tempdir(output.tempdir)?
.command("list 9068a11b8769174363376b606af9a4b8b29dd7b13d013f4b0cbbd457db3c3ce5:0")
.expected_stdout("[5000000000,10000000000)\n")
.block()
.block()
.output()?;

// assert_eq!(output.calls, &["getblockhash", "getblock", "getblockhash"]);

Ok(())
}

#[test]
fn default_index_size() -> Result {
let tempdir = Test::new()?
.command("find 0")
.expected_stdout("0396bc915f141f7de025f72ae9b6bb8dcdb5f444fc245d8fac486ba67a38eef9:0:0\n")
.expected_stdout("4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b:0:0\n")
.block()
.output()?
.tempdir;
Expand All @@ -40,7 +18,7 @@ fn default_index_size() -> Result {
fn custom_index_size() -> Result {
let tempdir = Test::new()?
.command("--max-index-size 1mib find 0")
.expected_stdout("0396bc915f141f7de025f72ae9b6bb8dcdb5f444fc245d8fac486ba67a38eef9:0:0\n")
.expected_stdout("4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b:0:0\n")
.block()
.output()?
.tempdir;
Expand Down
2 changes: 1 addition & 1 deletion tests/info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use super::*;

#[test]
fn basic() -> Result {
let output = Test::new()?.command("index").block().output()?;
let output = Test::new()?.command("index").output()?;

Test::with_tempdir(output.tempdir)?
.command("info")
Expand Down