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

perf: cache spks + txs to avoid n-plus-one in bdk #472

Merged
merged 3 commits into from
Feb 15, 2024

Conversation

bodymindarts
Copy link
Member

No description provided.

@bodymindarts bodymindarts changed the title chore: cache spks for faster lookup chore: cache spks + txs to avoid n-plus-one in bdk Feb 15, 2024
@bodymindarts bodymindarts changed the title chore: cache spks + txs to avoid n-plus-one in bdk perf: cache spks + txs to avoid n-plus-one in bdk Feb 15, 2024
Comment on lines 1 to 18
struct ForeignPayjoinInput {
pub txid: bitcoin::Txid,
pub vout: u32,
pub value: u64,
pub script_pubkey: bitcoin::Script,
}

#[derive(Serialize, Deserialize)]
#[serde(tag = "type", rename_all = "snake_case")]
pub enum PayjoinEvent {
Initialized {
foreign_utxos: Vec<ForeignPayjoinInput>,
},
}

pub struct PayJoin {
pub id: PayjoinId,

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

was this file intended to be committed ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

whoops no
thanks

@bodymindarts bodymindarts merged commit da77c07 into main Feb 15, 2024
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants