[#1077] service/object: Don't override status of payload overtake

Reverse payload overtake triggers direct payload overtake that
sets status and error. We should not override that.

Signed-off-by: Alex Vanin <alexey@nspcc.ru>
remotes/fyrchik/cli-wallet-flag
Alex Vanin 2022-01-12 15:27:57 +03:00 committed by Alex Vanin
parent 5828f43e52
commit 0f1eb743af
1 changed files with 1 additions and 4 deletions

View File

@ -160,10 +160,7 @@ func (exec *execCtx) overtakePayloadInReverse(prev *objectSDK.ID) bool {
exec.overtakePayloadDirectly(chain, rngs, false)
exec.status = statusOK
exec.err = nil
return true
return exec.status == statusOK
}
func (exec *execCtx) buildChainInReverse(prev *objectSDK.ID) ([]*objectSDK.ID, []*objectSDK.Range, bool) {