Skip to content

Commit

Permalink
Merge pull request #71 from Chia-Network/20250212-update-active
Browse files Browse the repository at this point in the history
Merge up active
  • Loading branch information
prozacchiwawa authored Feb 12, 2025
2 parents bfc3a8a + 10535d0 commit 626cd04
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 3 additions & 0 deletions src/channel_handler/game.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ use clvmr::run_program;

use clvm_tools_rs::classic::clvm::sexp::proper_list;

use log::debug;

use crate::channel_handler::game_handler::GameHandler;
use crate::channel_handler::types::ValidationProgram;
use crate::channel_handler::GameStartInfo;
Expand Down Expand Up @@ -36,6 +38,7 @@ impl Game {
let poker_generator = read_hex_puzzle(allocator, game_hex_file)?;
let nil = allocator.encode_atom(&[]).into_gen()?;
let poker_generator_clvm = poker_generator.to_clvm(allocator).into_gen()?;
debug!("running start");
let template_clvm = run_program(
allocator.allocator(),
&chia_dialect(),
Expand Down
1 change: 1 addition & 0 deletions src/potato_handler/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -771,6 +771,7 @@ impl PotatoHandler {
.to_clvm(env.allocator)
.into_gen()?;

debug!("running program to get game start");
let program_output = run_program(
env.allocator.allocator(),
&chia_dialect(),
Expand Down
4 changes: 1 addition & 3 deletions src/tests/peer/potato_handler_sim.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1263,8 +1263,7 @@ fn sim_test_with_peer_container_piss_off_peer_after_start_complete() {
run_calpoker_container_with_action_list(&mut allocator, &moves).expect("should finish");

let (p1_balance, p2_balance) = get_balances_from_outcome(&outcome).expect("should work");
assert_eq!(p1_balance, 1999999999900);
assert_eq!(p2_balance, 2000000000100);
assert_eq!(p2_balance, p1_balance + 200);
}

#[test]
Expand Down Expand Up @@ -1312,7 +1311,6 @@ fn sim_test_with_peer_container_piss_off_peer_timeout() {
run_calpoker_container_with_action_list(&mut allocator, &moves).expect("should finish");

let (p1_balance, p2_balance) = get_balances_from_outcome(&outcome).expect("should work");
assert_eq!(p1_balance, 2000000000100);
assert_eq!(p1_balance, p2_balance + 200);
}

Expand Down

0 comments on commit 626cd04

Please sign in to comment.