chore: Tidy up examples

This commit is contained in:
Santiago Carmuega 2022-02-24 15:16:04 -03:00
parent 75fa717583
commit 3280397c70
5 changed files with 10 additions and 13 deletions

View file

@ -6,8 +6,6 @@ members = [
"pallas-crypto",
"pallas-primitives",
"pallas",
"examples/block-download",
"examples/byron-decoder",
]
exclude = [
"block-download"
]

View file

@ -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]

View file

@ -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(),

View file

@ -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]

View file

@ -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(),