dashpay / platform

L2 solution for seriously fast decentralized applications for the Dash network
https://dashplatform.readme.io/docs/introduction-what-is-dash-platform
MIT License
71 stars 39 forks source link

Can't make transactions with JS Dash SDK (Empty SPV chain error) #2272

Open pshenmic opened 3 days ago

pshenmic commented 3 days ago

Expected Behavior

It should be possible to make transactions

Current Behavior

Dash SDK fails to sync with Empty SPV chain error, as a result it does not recognise new utxos in the wallet and any transaction done from the wallet tries to spend UTXO that has been already spent.

Possible Solution

I don't really understand what is hapenning

Steps to Reproduce (for bugs)

  1. await client.getWalletAccount()
  2. Empty SPV chain throws almost every time (and every time when i use unsafeOptions)

Context

Your Environment

thephez commented 3 days ago

Is this on testnet or mainnet? I just ran some stuff on testnet and didn't have any issues. I am on Linux / Node 20.1

pshenmic commented 2 days ago

On mainnet, but on the testnet sometimes also occurs