tongo
tongo copied to clipboard
RawSendV2 waitingConfirmation is not usefull.
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
}
}