From 569c336f1db06f19ab00b507a5d2105db78556cc Mon Sep 17 00:00:00 2001 From: Kayos Date: Wed, 6 May 2026 08:08:35 -0700 Subject: [PATCH] fix(dao-mcp): vote tool H-3 preflight reads from prop_datum (post-move) The H-3 fix in commit a0daadf referenced target.datum.starting_time + target.datum.timing_config after target.datum had already been moved into prop_datum upstream in the function. Switch to reading from prop_datum directly. Pure compile fix; logic unchanged. --- crates/aldabra-mcp/src/tools.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/crates/aldabra-mcp/src/tools.rs b/crates/aldabra-mcp/src/tools.rs index bf67a14..a6ac1ec 100644 --- a/crates/aldabra-mcp/src/tools.rs +++ b/crates/aldabra-mcp/src/tools.rs @@ -2712,10 +2712,12 @@ impl WalletService { // a vote-too-early call (tip < voting_start) would burn fees on a // "too early or invalid" script error. Catch lb-vs-voting_start // here too. - let voting_start_check = target.datum.starting_time - + target.datum.timing_config.draft_time; + // + // Read from prop_datum (target.datum was moved to prop_datum at L2636). + let voting_start_check = prop_datum.starting_time + + prop_datum.timing_config.draft_time; let voting_end_check = voting_start_check - + target.datum.timing_config.voting_time; + + prop_datum.timing_config.voting_time; if tx_lower_ms < voting_start_check { return Err(format!( "tx lower bound {tx_lower_ms} ms is before voting window start {voting_start_check} ms \