chore: Tidy up examples
This commit is contained in:
parent
75fa717583
commit
3280397c70
5 changed files with 10 additions and 13 deletions
|
|
@ -6,8 +6,6 @@ members = [
|
|||
"pallas-crypto",
|
||||
"pallas-primitives",
|
||||
"pallas",
|
||||
"examples/block-download",
|
||||
"examples/byron-decoder",
|
||||
]
|
||||
|
||||
exclude = [
|
||||
"block-download"
|
||||
]
|
||||
|
|
@ -2,6 +2,7 @@
|
|||
name = "block-download"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
publish = false
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
|
|
@ -11,4 +12,3 @@ net2 = "0.2.37"
|
|||
env_logger = "0.9.0"
|
||||
hex = "0.4.3"
|
||||
|
||||
[workspace]
|
||||
|
|
|
|||
|
|
@ -38,15 +38,15 @@ fn main() {
|
|||
|
||||
let mut hs_channel = muxer.use_channel(0);
|
||||
let versions = VersionTable::v4_and_above(MAINNET_MAGIC);
|
||||
let last = run_agent(Client::initial(versions), &mut hs_channel).unwrap();
|
||||
let _last = run_agent(Client::initial(versions), &mut hs_channel).unwrap();
|
||||
|
||||
let range = (
|
||||
Point(
|
||||
Point::Specific(
|
||||
4492794,
|
||||
hex::decode("5c196e7394ace0449ba5a51c919369699b13896e97432894b4f0354dce8670b6")
|
||||
.unwrap(),
|
||||
),
|
||||
Point(
|
||||
Point::Specific(
|
||||
4492794,
|
||||
hex::decode("5c196e7394ace0449ba5a51c919369699b13896e97432894b4f0354dce8670b6")
|
||||
.unwrap(),
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@
|
|||
name = "byron-decoder"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
publish = false
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
|
|
@ -10,5 +11,3 @@ pallas = { path = "../../pallas" }
|
|||
net2 = "0.2.37"
|
||||
env_logger = "0.9.0"
|
||||
hex = "0.4.3"
|
||||
|
||||
[workspace]
|
||||
|
|
|
|||
|
|
@ -41,15 +41,15 @@ fn main() {
|
|||
|
||||
let mut hs_channel = muxer.use_channel(0);
|
||||
let versions = VersionTable::v4_and_above(MAINNET_MAGIC);
|
||||
let last = run_agent(Client::initial(versions), &mut hs_channel).unwrap();
|
||||
let _last = run_agent(Client::initial(versions), &mut hs_channel).unwrap();
|
||||
|
||||
let range = (
|
||||
Point(
|
||||
Point::Specific(
|
||||
3240000,
|
||||
hex::decode("b7096a881f77ced24bdd285758646c0e059545b54855bd3a2307ece518bd6317")
|
||||
.unwrap(),
|
||||
),
|
||||
Point(
|
||||
Point::Specific(
|
||||
4492794,
|
||||
hex::decode("5c196e7394ace0449ba5a51c919369699b13896e97432894b4f0354dce8670b6")
|
||||
.unwrap(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue