MichaelSchwab / iota-commandline-wallet

A commandline based wallet for the IOTA crypto currency, based on nodejs
27 stars 6 forks source link

Replay failed. Invalid Bundle provided #9

Open TheFreak17 opened 6 years ago

TheFreak17 commented 6 years ago

Hi! When making a Transfer to my other wallet, the transaction doesn't get confirmed. When I try to Replay it, it says { status: "error", message: "Replay failed. Invalid Bundle provided"} although it is the correct address I'm trying to replay. What is wrong?!

MichaelSchwab commented 6 years ago

Thats strange, what is the output on screen? You can safely post it here since it is only bundels and addresses.

TheFreak17 commented 6 years ago

$ node my-wallet.js R SZNFFWCHJEYJYNUL9KAJDFEIFRNQWEWBQOKUYLHKGCQ9WTWKIHFLFCYXPTVOBLP9MBRLUJXYAFOOWPFYXZBUIPKTNZ BUNDLE: GRQCSFBHXGCSKYCJT9LHFGLXOJVBFQHACGGZSGHDUJWRBSJNBDNLEKKAJCLYDFXNUHUOIIQEUOAKD9ECC REPLAY COUNT: 1 CONFIRMED Tx IN BUNDLE: 0 UNCONFIRMED Tx: 4 TAIL: GVVFXQSMMNFXRWYLYDJWWWCKBOLLXHXTCHASJICQVXPFPAJLYWLLKB9RVENNKJBNWBT9YVSXMYJZ99999 Funding: true Replaying REPLAY COUNT: 1 CONFIRMED Tx IN BUNDLE: 0 UNCONFIRMED Tx: 4 TAIL: GVVFXQSMMNFXRWYLYDJWWWCKBOLLXHXTCHASJICQVXPFPAJLYWLLKB9RVENNKJBNWBT9YVSXMYJZ99999 Funding: true { status: "error", message: "Replay failed. Invalid Bundle provided"}

MichaelSchwab commented 6 years ago

Thanks for your info, I checked it on my machine getting the same error, but have currently no idea. Looks like it is somewhere in iota.lib.js The given tail transaction is correct.

MichaelSchwab commented 6 years ago

This is the function which makes problems if (!Utils.isBundle(bundle)) {

        return callback(new Error("Invalid Bundle provided"))

its in utils.js and smehow it retunes false despite og that the bundle which is given to the function looks ok

MichaelSchwab commented 6 years ago

Finally it looks like a problem with the signature to me, thats where it exits ...

TheFreak17 commented 6 years ago

I can only find the lines you mentioned in the file “iota.js”. But since that file is in the folder of the “IOTA Wallet” (the “official” IOTA wallet I installed before and didn't work out but still left on the computer), I think it shouldn't be accounted for this problem. Where can I find the file “utils.js” you mentioned?

So sending Iota works completely fine on your computer and you don't get the error on replaying?

What do you mean by signature? Any idea what I can do to make transactions work?

One more info: two days before the snapshot last Sunday I tried to transfer 10 and another time 100 Iota. Both transactions kept being “pending” (on thetangle.org) until the snapshot. So they did not get transferred. (I tried to send 100 Iota instead of just 10 because I thought maybe it doesn't get transferred because 10 Iota is too little of an amount to send.)

MichaelSchwab commented 6 years ago

The utils.js is in the modules you downloaded by npm install it is part of the iota javascript library, so well, I am not sure where the problem is, since the signature of your transaction seems to be invalid and so the transaction will never be confirmed.