tongo icon indicating copy to clipboard operation
tongo copied to clipboard

RawSendV2 waitingConfirmation is not usefull.

Open ok1d opened this issue 1 year ago • 5 comments

func (w *Wallet) RawSendV2(

for ; time.Since(t) < waitingConfirmation; time.Sleep(waitingConfirmation / 10) {
	newSeqno, err := w.blockchain.GetSeqno(ctx, w.address)
	if err == nil {
		continue
	}
	if newSeqno >= seqno {
		return msgHash, nil //todo: check if it is the same message
	}
}

should be

for ; time.Since(t) < waitingConfirmation; time.Sleep(waitingConfirmation / 10) {
	newSeqno, err := w.blockchain.GetSeqno(ctx, w.address)
	if err != nil {
		continue
	}
	if newSeqno > seqno {
		return msgHash, nil //todo: check if it is the same message
	}
}

ok1d avatar Jun 26 '24 01:06 ok1d