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

chore(deps): Update Pallas to version 0.8.0-alpha.1 #242

Merged
merged 2 commits into from
Apr 11, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 13 additions & 12 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ authors = ["Santiago Carmuega <[email protected]>"]


[dependencies]
pallas = "0.8.0-alpha.0"
pallas = "0.8.0"
# pallas = { path = "../pallas/pallas" }
hex = "0.4.3"
net2 = "0.2.37"
Expand Down
4 changes: 2 additions & 2 deletions src/mapper/collect.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use pallas::ledger::primitives::alonzo::{
crypto, AuxiliaryData, Block, Multiasset, TransactionInput, TransactionOutput, Value,
AuxiliaryData, Block, Multiasset, TransactionInput, TransactionOutput, Value,
};

use crate::{
Expand Down Expand Up @@ -91,7 +91,7 @@ impl EventWriter {
.find(|(k, _)| *k == (idx as u32))
.map(|(_, v)| v);

let tx_hash = crypto::hash_transaction(tx).to_hex();
let tx_hash = tx.to_hash().to_hex();

self.to_transaction_record(tx, &tx_hash, aux_data)
})
Expand Down
2 changes: 1 addition & 1 deletion src/mapper/shelley.rs
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ impl EventWriter {
.find(|(k, _)| *k == (idx as u32))
.map(|(_, v)| v);

let tx_hash = crypto::hash_transaction(tx).to_hex();
let tx_hash = tx.to_hash().to_hex();

let child = self.child_writer(EventContext {
tx_idx: Some(idx),
Expand Down
2 changes: 1 addition & 1 deletion src/sources/n2n/run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ impl Debug for Block2EventMapper {
}

impl blockfetch::Observer for Block2EventMapper {
fn on_block_received(&self, body: Vec<u8>) -> Result<(), Error> {
fn on_block_received(&mut self, body: Vec<u8>) -> Result<(), Error> {
let Self(writer) = self;

match probing::probe_block_cbor_era(&body) {
Expand Down