Logo
Explore Help
Sign In
absolutebi/serai
1
0
Fork 0
You've already forked serai
mirror of https://github.com/serai-dex/serai.git synced 2025-12-09 12:49:23 +00:00
Code Issues Packages Projects Releases Wiki Activity
Files
88c7ae3e7de01a32cf1e6d185fba82c3288be6db
serai/processor/bitcoin/src/db.rs

9 lines
182 B
Rust
Raw Normal View History

Use a local DB channel for sending to the message-queue The provided message-queue queue functions runs unti it succeeds. This means sending to the message-queue will no longer potentially block for arbitrary amount of times as sending messages is just writing them to a DB.
2024-09-11 19:29:56 -04:00
use serai_db::{Get, DbTxn, create_db};
Start on the new processor main loop
2024-09-11 04:54:03 -04: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.
2024-09-11 02:46:18 -04:00
create_db! {
BitcoinProcessor {
LatestBlockToYieldAsFinalized: () -> u64,
ScriptPubKey: (tx: [u8; 32], vout: u32) -> Vec<u8>,
}
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.1 Page: 56ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API