From ed97a41384ddcdc9208e28c7660f0d2d1af1ffbe Mon Sep 17 00:00:00 2001 From: Quantum Explorer Date: Sat, 5 Oct 2024 21:13:28 +0700 Subject: [PATCH 1/2] fix: changed broadcasted to pooled when retrying after expired --- .../rebroadcast_expired_withdrawal_documents/v1/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/rs-drive-abci/src/execution/platform_events/withdrawals/rebroadcast_expired_withdrawal_documents/v1/mod.rs b/packages/rs-drive-abci/src/execution/platform_events/withdrawals/rebroadcast_expired_withdrawal_documents/v1/mod.rs index 7e90dc51cb..3ce14b7044 100644 --- a/packages/rs-drive-abci/src/execution/platform_events/withdrawals/rebroadcast_expired_withdrawal_documents/v1/mod.rs +++ b/packages/rs-drive-abci/src/execution/platform_events/withdrawals/rebroadcast_expired_withdrawal_documents/v1/mod.rs @@ -68,7 +68,7 @@ where for mut document in expired_withdrawal_documents_to_retry_signing { document.set_u8( withdrawal::properties::STATUS, - WithdrawalStatus::BROADCASTED as u8, + WithdrawalStatus::POOLED as u8, ); document.set_updated_at(Some(block_info.time_ms)); From 2e07014533793c8f47dfebcffcc1dad890fc22b3 Mon Sep 17 00:00:00 2001 From: Quantum Explorer Date: Sat, 5 Oct 2024 21:18:39 +0700 Subject: [PATCH 2/2] fix: set sign height when rebroadcasting after expiration --- .../rebroadcast_expired_withdrawal_documents/v1/mod.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/rs-drive-abci/src/execution/platform_events/withdrawals/rebroadcast_expired_withdrawal_documents/v1/mod.rs b/packages/rs-drive-abci/src/execution/platform_events/withdrawals/rebroadcast_expired_withdrawal_documents/v1/mod.rs index 3ce14b7044..e2e50b3e5b 100644 --- a/packages/rs-drive-abci/src/execution/platform_events/withdrawals/rebroadcast_expired_withdrawal_documents/v1/mod.rs +++ b/packages/rs-drive-abci/src/execution/platform_events/withdrawals/rebroadcast_expired_withdrawal_documents/v1/mod.rs @@ -68,7 +68,12 @@ where for mut document in expired_withdrawal_documents_to_retry_signing { document.set_u8( withdrawal::properties::STATUS, - WithdrawalStatus::POOLED as u8, + WithdrawalStatus::BROADCASTED as u8, + ); + + document.set_u64( + withdrawal::properties::TRANSACTION_SIGN_HEIGHT, + block_info.core_height as u64, ); document.set_updated_at(Some(block_info.time_ms));