diff --git a/src/channel_handler/game.rs b/src/channel_handler/game.rs index bf60e836..c059496d 100644 --- a/src/channel_handler/game.rs +++ b/src/channel_handler/game.rs @@ -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; @@ -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(), diff --git a/src/potato_handler/mod.rs b/src/potato_handler/mod.rs index 7d1e88a1..5814cf22 100644 --- a/src/potato_handler/mod.rs +++ b/src/potato_handler/mod.rs @@ -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(), diff --git a/src/tests/peer/potato_handler_sim.rs b/src/tests/peer/potato_handler_sim.rs index 93c1bc35..15d42cb3 100644 --- a/src/tests/peer/potato_handler_sim.rs +++ b/src/tests/peer/potato_handler_sim.rs @@ -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] @@ -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); }