-
Notifications
You must be signed in to change notification settings - Fork 307
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 sync_request and full_scan_request functions #1194
Add wallet sync_request and full_scan_request functions #1194
Commits on Mar 25, 2024
-
feat(chain)!: wrap
TxGraph
txs withArc
Wrapping transactions as `Arc<Transaction>` allows us to share transactions cheaply between the chain-source and receiving structures. Therefore the chain-source can keep already-fetched transactions (save bandwidth) and have a shared pointer to the transactions (save memory). This is better than the current way we do things, which is to refer back to the receiving structures mid-sync. Documentation for `TxGraph` is also updated.
Configuration menu - View commit details
-
Copy full SHA for 9609e3d - Browse repository at this point
Copy the full SHA 9609e3dView commit details -
feat(chain): add
query
andquery_from
methods toCheckPoint
These methods allow us to query for checkpoints contained within the linked list by height. This is useful to determine checkpoints to fetch for chain sources without having to refer back to the `LocalChain`. Currently this is not implemented efficiently, but in the future, we will change `CheckPoint` to use a skip list structure.
Configuration menu - View commit details
-
Copy full SHA for b1eeec0 - Browse repository at this point
Copy the full SHA b1eeec0View commit details -
feat(chain): impl
PartialEq
onCheckPoint
We impl `PartialEq` on `CheckPoint` instead of directly on `LocalChain`. We also made the implementation more efficient.
Configuration menu - View commit details
-
Copy full SHA for d507e3e - Browse repository at this point
Copy the full SHA d507e3eView commit details -
feat(testenv): add
make_checkpoint_tip
This creates a checkpoint linked list which contains all blocks.
Configuration menu - View commit details
-
Copy full SHA for 9ad2db3 - Browse repository at this point
Copy the full SHA 9ad2db3View commit details
Commits on Mar 26, 2024
-
feat(esplora)!: remove
EsploraExt::update_local_chain
Previously, we would update the `TxGraph` and `KeychainTxOutIndex` first, then create a second update for `LocalChain`. This required locking the receiving structures 3 times (instead of twice, which is optimal). This PR eliminates this requirement by making use of the new `query` method of `CheckPoint`. Examples are also updated to use the new API.
Configuration menu - View commit details
-
Copy full SHA for b3ec1b8 - Browse repository at this point
Copy the full SHA b3ec1b8View commit details -
chore(chain)!: rm
missing_heights
andmissing_heights_from
methodsThese methods are no longer needed as we can determine missing heights directly from the `CheckPoint` tip.
Configuration menu - View commit details
-
Copy full SHA for 7dd98df - Browse repository at this point
Copy the full SHA 7dd98dfView commit details -
feat(testenv): add
genesis_hash
methodThis gets the genesis hash of the env blockchain.
Configuration menu - View commit details
-
Copy full SHA for a10f14c - Browse repository at this point
Copy the full SHA a10f14cView commit details -
test(esplora): add
test_finalize_chain_update
We ensure that calling `finalize_chain_update` does not result in a chain which removed previous heights and all anchor heights are included.
Configuration menu - View commit details
-
Copy full SHA for f04207d - Browse repository at this point
Copy the full SHA f04207dView commit details
Commits on Mar 29, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 80c4650 - Browse repository at this point
Copy the full SHA 80c4650View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5e169e1 - Browse repository at this point
Copy the full SHA 5e169e1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 98508f8 - Browse repository at this point
Copy the full SHA 98508f8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1144f68 - Browse repository at this point
Copy the full SHA 1144f68View commit details -
Configuration menu - View commit details
-
Copy full SHA for 72c438a - Browse repository at this point
Copy the full SHA 72c438aView commit details