-
Notifications
You must be signed in to change notification settings - Fork 117
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
Cannot broadcast Atomic swaps transactions. #136
Comments
Are you using different nodes/wallets to execute the steps? |
Yes. A and B are on different VPS and they are different wallet. |
You need to spend whole coins in swaps, so you need to have an unspent coin with the balance you want to swap. Use ./drk wallet --coin to check which coins are unspent. When executing ./drk wallet --balance, unspent coins of the same token are getting summed, for example you hold 2 coins of token DARK..... one with value of 1 and another with value of 2, you balance will show DARK..... -> 3. If you don't want to swap the whole coin, you can transfer to your self/wallet so you split up the single coin into multiple ones. |
yes, A and B used whole coins in swap. Actually if I don't use full coin. step 1, 2 below won't succeed.
I use full coin to swap , but still failed to broadcask. I tried many times. |
Could you try ./drk scan --reset, to reset the wallet state and then repeat the steps? |
tried again.
B.
A:
thansfer half_swap file to B
transfer full_swap to A A:
The final result is same error. |
Hey there is a fix pushed about syncing, so I would recommend to do a hard reset of the blockchain. So you have to stop your node, remove the blockchain folder(probably at ~/.config/darkfi/darkfid/blockchain), pull, recompile, let the node sync, and finally force wallet reset with ./drk scan --reset. This way all the states will be synced correctly and the performing the steps(hopefully last time) will result in success! |
removed the blockchain folder, pulled the latest commit, rebuild. I wanna resync the blockchain but got this error now.
|
If you had removed the folder there should be an error that the contract is not there, maybe first deleted then stopped? Retry stopping then removing the folder again just for sanity sake. |
I know the problem now. the folder should be |
Thank you ! This time broadcast signed_swap successfully finally.
|
And another problem I found.
The last one
is from dao balance
I cannot atomic swap this coin as well.
I think this may make people misunderstand. should not show dao balances as coin when run |
Error: ContractError(IoError("Unknown")) is fixed now, rest stuff we'll look tomorrow and update you! Thanks again for the detailed errors. |
Update: we are fixing a lot of testnet findings and will tag a new hotfix version and reset network in couple of days. |
Network have been reset! |
I often get this in new version. is it normal? in old version ,it was smooth
|
Did you remove your wallet file? If yes you have to reinit your wallet. |
No I didn't. and sometimes it can succeed. |
Are you sure this is not OS related? What system are you on? |
ubuntu 20.04 , I will try run node again or on different machine. |
I know the problem now. I have old unclosed I suggest check if there is a process already running before start the node. |
|
and I think this issue still exist. |
I followed the testnet instructions.
half_swap
file.half_swap
file to create thefull_swap
.full_swap
and getsigned_swap
.\drk broadcast < signed_swap
then get error./drk otc inspect <full_swap
, got error at the bottomVersion : v4.0.0
rustc 1.67.0 (fc594f156 2023-01-24)
The text was updated successfully, but these errors were encountered: