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.
This commit is contained in:
parent
a0daadf38e
commit
569c336f1d
1 changed files with 5 additions and 3 deletions
|
|
@ -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 \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue