Daniela Brozzoni
f2f0efc0b3
Never delete spent utxos from the database
...
A `is_spent` field is added to LocalUtxo; when a txo is spent we set
this field to true instead of deleting the entire utxo from the
database.
This allows us to create txs double-spending txs already in blockchain.
Listunspent won't return spent utxos, effectively excluding them from the
coin selection and balance calculation
2022-03-10 11:58:23 +01:00
rajarshimaitra
1d7ea89d8a
Refactor sync time verification
...
Instead of verifying txs at sync time in every backend, its moved to
script_sync to by default be available to any backend.
2022-02-09 16:59:53 +05:30
rajarshimaitra
08f312a82f
Remove verify
flag from TransactionDetails
2022-02-09 12:29:47 +05:30
LLFourn
a630685a0a
Merge branch 'master' into sync_pipeline
2021-11-23 12:53:40 +11:00
LLFourn
0f0a01a742
s/vin/vout/
2021-11-10 09:07:36 +11:00
LLFourn
d3779fac73
Fix comments
2021-11-10 09:07:36 +11:00
LLFourn
d39401162f
Less intermediary data states in sync
...
Use BTrees to store ordered sets rather than HashSets -> VecDequeue
2021-11-10 09:07:36 +11:00
LLFourn
dfb63d389b
s/observed_txs/finished_txs/g
2021-11-10 09:07:36 +11:00
LLFourn
188d9a4a8b
Make variable names consistent
2021-11-10 09:07:36 +11:00
LLFourn
5eadf5ccf9
Add some logging to script_sync
2021-11-10 09:07:36 +11:00
LLFourn
e7c13575c8
Don't request conftime during tx request
2021-11-10 09:07:36 +11:00
LLFourn
3f5cb6997f
Invert dependencies in electrum sync
...
Blockchain calls sync logic rather than the other way around.
Sync logic is captured in script_sync.rs.
2021-11-10 09:06:49 +11:00