mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-08 12:19:24 +00:00
Implement presumed_origin
Before we yield a block for scanning, we save all of the contained script public keys. Then, when we want the address credited for creating an output, we read the script public key of the spent output from the database. Fixes #559.
This commit is contained in:
@@ -18,6 +18,10 @@ mod block;
|
||||
mod rpc;
|
||||
mod scheduler;
|
||||
|
||||
// Our custom code for Bitcoin
|
||||
mod db;
|
||||
mod txindex;
|
||||
|
||||
pub(crate) fn hash_bytes(hash: bitcoin_serai::bitcoin::hashes::sha256d::Hash) -> [u8; 32] {
|
||||
use bitcoin_serai::bitcoin::hashes::Hash;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user