Skip to content

Commit

Permalink
make the included reward coins a list (to match python)
Browse files Browse the repository at this point in the history
  • Loading branch information
arvidn committed Nov 22, 2023
1 parent b9d2248 commit f640c73
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions chia-protocol/src/fullblock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,8 @@ impl FullBlock {
}

#[pyo3(name = "get_included_reward_coins")]
fn py_get_included_reward_coins(&self) -> HashSet<Coin> {
HashSet::from_iter(self.get_included_reward_coins())
fn py_get_included_reward_coins(&self) -> Vec<Coin> {
self.get_included_reward_coins()
}

#[pyo3(name = "is_fully_compactified")]
Expand Down
2 changes: 1 addition & 1 deletion wheel/chia_rs.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -756,7 +756,7 @@ class FullBlock:
total_iters: int
height: int
weight: int
def get_included_reward_coins(self) -> Set[Coin]: ...
def get_included_reward_coins(self) -> List[Coin]: ...
def is_fully_compactified(self) -> bool: ...
def __init__(
self,
Expand Down
2 changes: 1 addition & 1 deletion wheel/generate_type_stubs.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def parse_rust_source(filename: str) -> List[Tuple[str, List[str]]]:
"total_iters: int",
"height: int",
"weight: int",
"def get_included_reward_coins(self) -> Set[Coin]: ...",
"def get_included_reward_coins(self) -> List[Coin]: ...",
"def is_fully_compactified(self) -> bool: ...",
],
"HeaderBlock": [
Expand Down

0 comments on commit f640c73

Please sign in to comment.