Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

feat: inscriber example #17

Merged
merged 9 commits into from
Aug 23, 2024

Conversation

irnb
Copy link
Collaborator

@irnb irnb commented Aug 22, 2024

fixing client response time on fetching utxo

using inscriber module in the example

cargo run --example inscriber

@irnb irnb changed the title Feat: inscriber example and fix issues Feat: inscriber example Aug 22, 2024
@irnb irnb requested a review from steph-rs August 22, 2024 17:23
@irnb irnb changed the title Feat: inscriber example feat: inscriber example Aug 22, 2024
Copy link
Collaborator

@steph-rs steph-rs left a comment

Choose a reason for hiding this comment

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

Dropped a few suggestions, but we can merge it now
nice job!

.await
.context("Failed to create Inscriber")?;

println!(
Copy link
Collaborator

Choose a reason for hiding this comment

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

maybe we could use the tracing crate here. It will help understand how logs will look like in production
checkout the indexer example


println!("---------------------------------First Inscription---------------------------------");
let context = inscriber_instance.get_context_snapshot()?;
println!("context: {:?}", context);
Copy link
Collaborator

Choose a reason for hiding this comment

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

It would be nice to implement fmt::Debug for context struct, but maybe in the future refactoring or so

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

awesome, i'll add your suggestion in my next PR

thanks

@irnb irnb merged commit b9761e8 into feat/bitcoin-integration Aug 23, 2024
2 checks passed
@irnb irnb deleted the feat/inscriber-example-and-fix branch August 23, 2024 12:30
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants