Skip to content

Commit

Permalink
Merge pull request #591 from AmineKhaldi/spendbundle_no_debug
Browse files Browse the repository at this point in the history
CHIA-880 Remove no longer needed debug in SpendBundle
  • Loading branch information
Rigidity authored Jul 3, 2024
2 parents b1dd31a + ebb862d commit b1369f0
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 14 deletions.
12 changes: 0 additions & 12 deletions crates/chia-protocol/src/spend_bundle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,18 +118,6 @@ impl SpendBundle {
self.additions()
.map_err(|e| pyo3::exceptions::PyValueError::new_err(e.1))
}

fn debug(&self, py: Python<'_>) -> PyResult<()> {
use pyo3::types::PyDict;
let ctx = PyDict::new_bound(py);
ctx.set_item("self", self.clone().into_py(py))?;
py.run_bound(
"from chia.wallet.util.debug_spend_bundle import debug_spend_bundle\n\
debug_spend_bundle(self)\n",
None,
Some(&ctx),
)
}
}

#[cfg(test)]
Expand Down
1 change: 0 additions & 1 deletion wheel/generate_type_stubs.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,6 @@ def parse_rust_source(filename: str, upper_case: bool) -> List[Tuple[str, List[s
"def name(self) -> bytes32: ...",
"def removals(self) -> List[Coin]: ...",
"def additions(self) -> List[Coin]: ...",
"def debug(self) -> None: ...",
],
"BlockRecord": [
"is_transaction_block: bool",
Expand Down
1 change: 0 additions & 1 deletion wheel/python/chia_rs/chia_rs.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -2326,7 +2326,6 @@ class SpendBundle:
def name(self) -> bytes32: ...
def removals(self) -> List[Coin]: ...
def additions(self) -> List[Coin]: ...
def debug(self) -> None: ...
def __init__(
self,
coin_spends: Sequence[CoinSpend],
Expand Down

0 comments on commit b1369f0

Please sign in to comment.