Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CreateTransactionError: Error: utxosList must contain at least 1 utxo #134

Closed
cloudwheels opened this issue Nov 2, 2020 · 17 comments
Closed
Labels
wallet-lib Wallet lib related

Comments

@cloudwheels
Copy link

Current Behavior
This error occurs when attempting to spend funds. It appears the account is undefined. However, the code has also executed correctly, so the problem is intermittent.
The code being executed is here:
https://github.com/dashmachine/autofaucet-express/blob/master/index.js

Your Environment

Evonet 0.16

I am not sure if this is just dashevo/wallet-lib#178 under a different guise??

Error output:

Something went wrong: TypeError: Cannot read property 'getUnusedAddress' of undefined
    at getDrip (/home/nigel/autofaucet-express/index.js:32:33)
    at /home/nigel/autofaucet-express/index.js:83:15
    at Layer.handle [as handle_request] (/home/nigel/autofaucet-express/node_modules/express/lib/router/layer.js:95:5)
    at next (/home/nigel/autofaucet-express/node_modules/express/lib/router/route.js:137:13)
    at Route.dispatch (/home/nigel/autofaucet-express/node_modules/express/lib/router/route.js:112:3)
    at Layer.handle [as handle_request] (/home/nigel/autofaucet-express/node_modules/express/lib/router/layer.js:95:5)
    at /home/nigel/autofaucet-express/node_modules/express/lib/router/index.js:281:22
    at param (/home/nigel/autofaucet-express/node_modules/express/lib/router/index.js:354:14)
    at param (/home/nigel/autofaucet-express/node_modules/express/lib/router/index.js:365:14)
    at Function.process_params (/home/nigel/autofaucet-express/node_modules/express/lib/router/index.js:410:3)
@dashameter
Copy link
Contributor

@Alex-Werner is this bug expected to be closed with the upcoming v.21?

@Alex-Werner
Copy link
Contributor

As far as I know, yes it should.

Two axis has been established for the specificity of utxosList must contain at least 1 utxos, with one simple getUTXO maturity value overwrite ability being ready for being worked on and on which we except a speedy fix.

On this specific task however, the issue of the account being undefined might be a little bit separated, and I do plan to work on identifying the root cause on this at a time, that as much as I know, should happen BEFORE v21 being released.

@SamKirby22
Copy link

Discussed in Triage - P1, Maverick to discuss with Alex.

@dash-maverick
Copy link

Won't make it for v21. But as a patch for v21 shortly after releasing the v21 - yes

@dash-maverick
Copy link

lets proceed with a retest

@dashameter
Copy link
Contributor

@Alex-Werner I see a different error instead:
InvalidRequestError: Transaction already in chain: Transaction already in block chain even though not a single transaction has been successfully broadcast yet. Is this simply a different string for the same error or shall I we close this issue and open a new one ?

@thephez
Copy link
Collaborator

thephez commented Nov 8, 2021

@Alex-Werner I see a different error instead: InvalidRequestError: Transaction already in chain: Transaction already in block chain even though not a single transaction has been successfully broadcast yet. Is this simply a different string for the same error or shall I we close this issue and open a new one ?

@dashameter Do you have a TXID for the tx? It would probably be worth checking the chain to make sure it's not there in case a tx was somehow broadcast in spite of an error.

@dash-maverick
Copy link

@dashameter @SamKirby22 should be solved from now - please double check (have a look at dashevo/wallet-lib#232)

@dashameter
Copy link
Contributor

retest failed, the mnemonic of the sendTx2.js encounters a flood of these errors:

2|sendTx2  | Error: Merkle root from the diff doesn't match calculated merkle root after diff is applied
2|sendTx2  |     at SimplifiedMNList.applyDiff (/root/dash-dapp-autofaucet/node_modules/@dashevo/dashcore-lib/lib/deterministicmnlist/SimplifiedMNList.js:85:11)
2|sendTx2  |     at SimplifiedMasternodeListProvider.updateMasternodeList (/root/dash-dapp-autofaucet/node_modules/@dashevo/dapi-client/lib/SimplifiedMasternodeListProvider/SimplifiedMasternodeListProvider.js:59:29)
2|sendTx2  |     at runMicrotasks (<anonymous>)
2|sendTx2  |     at processTicksAndRejections (internal/process/task_queues.js:97:5)
2|sendTx2  |     at async SimplifiedMasternodeListProvider.getSimplifiedMNList (/root/dash-dapp-autofaucet/node_modules/@dashevo/dapi-client/lib/SimplifiedMasternodeListProvider/SimplifiedMasternodeListProvider.js:34:7)
2|sendTx2  |     at async SimplifiedMasternodeListDAPIAddressProvider.getLiveAddress (/root/dash-dapp-autofaucet/node_modules/@dashevo/dapi-client/lib/dapiAddressProvider/SimplifiedMasternodeListDAPIAddressProvider.js:21:17)
2|sendTx2  |     at async GrpcTransport.request (/root/dash-dapp-autofaucet/node_modules/@dashevo/dapi-client/lib/transport/GrpcTransport/GrpcTransport.js:46:21)
2|sendTx2  |     at async CoreMethodsFacade.getTransaction (/root/dash-dapp-autofaucet/node_modules/@dashevo/dapi-client/lib/methods/core/getTransaction/getTransactionFactory.js:34:26)
2|sendTx2  |     at async DAPIClientTransport.getTransaction (/root/dash-dapp-autofaucet/node_modules/@dashevo/wallet-lib/src/transport/DAPIClientTransport/methods/getTransaction.js:16:22)
2|sendTx2  |     at async TransactionSyncStreamWorker.handleTransactionFromStream (/root/dash-dapp-autofaucet/node_modules/@dashevo/wallet-lib/src/plugins/Workers/TransactionSyncStreamWorker/methods/handleTransactionFromStream.js:13:34)

potentially the 1 utxo error is fixed, but I never get to the point of actually sending a transaction so I can't test it.

@dash-maverick
Copy link

Hey @Alex-Werner @markin-io , chaining of transactions was supposed to help here. Could you please refer?
AFAIK lack of SPV support in DAPI has also impact here , correct @shumkov ?

@shumkov
Copy link
Member

shumkov commented Dec 8, 2021

Yes. This error will be fixed with SPV implementation.

@dash-maverick
Copy link

there is something more in this, please take a look at the err log from Dashameter
https://gist.github.com/dashameter/5eb5a9fd0268684239b1dddfac02d452

@shumkov shumkov transferred this issue from dashevo/wallet-lib Dec 15, 2021
@shumkov shumkov added the wallet-lib Wallet lib related label Dec 15, 2021
@dash-maverick
Copy link

Gentlemen, we suggest to close that one and continue in #136 fyi @dashameter @SamKirby22 @Alex-Werner @markin-io

@dashameter
Copy link
Contributor

retest passed, closed

@dash-maverick
Copy link

so close please :)

@thephez
Copy link
Collaborator

thephez commented Mar 14, 2022

so close please :)

Dashameter is probably unable to since someone else opened it 🙂

@thephez thephez closed this as completed Mar 14, 2022
@dash-maverick
Copy link

sorry, my mistake, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wallet-lib Wallet lib related
Projects
None yet
Development

No branches or pull requests

7 participants