fix OfflineTargetReq.targetId in ResyncWorker (#231)
Some checks failed
Build / build (push) Has been cancelled

The targetId should be successor's targetId, because the OfflineTargetReq is sent to successor.
This commit is contained in:
jojomanar 2025-04-04 12:15:48 +08:00 committed by GitHub
parent fe4b26a64f
commit ee9a5cee0a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -279,7 +279,7 @@ CoTryTask<void> ResyncWorker::handleSync(VersionedChainId vChainId) {
XLOG(CRITICAL, msg);
OfflineTargetReq req;
req.targetId = targetId;
req.targetId = target->successor->targetInfo.targetId;
req.force = true;
CO_RETURN_AND_LOG_ON_ERROR(co_await components_.messenger.offlineTarget(*addrResult, req, &options));