Skip to content

Commit

Permalink
Merge pull request #227 from Chia-Network/0.2.10-hotfix
Browse files Browse the repository at this point in the history
disable backref encoding for get_puzzle_and_solution_for_coin
  • Loading branch information
arvidn authored Aug 8, 2023
2 parents 11b01a1 + 40e8db2 commit f211615
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion wheel/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "chia_rs"
version = "0.2.9"
version = "0.2.10"
authors = ["Richard Kiss <[email protected]>"]
edition = "2021"
license = "Apache-2.0"
Expand Down
16 changes: 10 additions & 6 deletions wheel/src/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ use clvmr::reduction::EvalErr;
use clvmr::reduction::Reduction;
use clvmr::run_program;
use clvmr::serde::node_to_bytes;
use clvmr::serde::{node_from_bytes, node_from_bytes_backrefs, node_to_bytes_backrefs};
use clvmr::serde::{node_from_bytes, node_from_bytes_backrefs};
use clvmr::ChiaDialect;

#[pyfunction]
Expand Down Expand Up @@ -125,11 +125,15 @@ pub fn get_puzzle_and_solution_for_coin<'py>(
}
});

let serialize = if (flags & ALLOW_BACKREFS) != 0 {
node_to_bytes_backrefs
} else {
node_to_bytes
};
// keep serializing normally, until wallets support backrefs
let serialize = node_to_bytes;
/*
let serialize = if (flags & ALLOW_BACKREFS) != 0 {
node_to_bytes_backrefs
} else {
node_to_bytes
};
*/
match r {
Err(eval_err) => eval_err_to_pyresult(py, eval_err, allocator),
Ok((puzzle, solution)) => Ok((
Expand Down

0 comments on commit f211615

Please sign in to comment.