add KCN + LCN#1277
Conversation
|
build Desktop app with the 2 coins in order to do some tests, but running into a weird problem i saw that they are sometimes slow in answering, but still weird that i get "Connection refused" in the app and not a timeout something else: the param |
|
@cipig can you please check if there is something wrong with my setup spesmilo/electrumx#290 ? |
|
root@localhost:~# (echo '{ "id": 1, "method": "blockchain.headers.subscribe" }'; sleep 0.5) | netcat electrum.kcnxp.com 51001 |
|
Restarted the server. |
that is from https://electrumx-spesmilo.readthedocs.io/en/latest/environment.html#resource-usage-limits COST_SOFT_LIMIT = 0 and COST_HARD_LIMIT = 0 disable the ressource limits
when electrumx syncs to latest height, then those settings are fine are, afaik, only used when you use "DAEMON = daemon.FakeEstimateFeeDaemon"... so in this case they will not be used |
|
I updated the settings as you suggested but probably will setup a dedicated server for it since it's important. |
|
It works smoothly now. Thank you! |
|
i am still getting the same when i want to enable KCN in Desktop: on CLI it works, i can fetch balance: totally weird, especially because i can enable all other coins on Desktop without problems |
|
btw, try it out, this is Desktop version with both coins added: https://github.com/cipig/komodo-wallet-desktop/actions/runs/13179070626 |
|
@cipig Thank you! I just downloaded the windows version, it works fine, it shows the balance both legacy and segwit, but both BEP20 says failed to enable them. It also doesn't show the price. Also the team is working on adding pairs on uniswap. For the electrum server, what do you recommend? I've a lot of resources on the server plenty of ports are unused. |
|
I've sent some test coins, everything works. But also icons of both are not showing. |
|
i am still getting the same error here... looks like my IP is banned/in the resource limit thingy |
|
I've set another server up, the domain now points to two servers, alto I didn't see any IPs beside my IP, I don't think it's a resource limit thing. Also I see the desktop wallet is bypassing my openvpn revealing my real IP. |
|
tried to enable KCN-segwit on maker nodes of mine, that run on VPS, so not on my home IP... but the result is the same as in the GUI: shows error same with LCN-segwit Is there something between client and electrumx server? maybe some proxy? |
|
found the problem by using telnet: so electrum.kcnxp.com resolves to some IPv6 address, which doesn't work... the IPv4 does work, but mm2 does not try that this now also explains why it works on some PCs: those have IPv6 completely disabled |
|
ok, it should work now |
|
thanks, electrums are working now over IPv6 but maker couldn't see the tx on chain or in mempool the swap therefore timed out looks like electrum server and coin daemon there accepted the takerfee tx, but it "got lost"... when maker asked for the tx electrum/coin daemon didn't had it |
|
found something else... |
|
your transaction is not lost, it uses the wrong hash https://kcnxp.com/tx/5ac64283a41dda1b11daeb1144fb853506008ba7e8ac27da8b42bf87afadfe60 |
so, what does that mean? checked the values and they are the same as in wallet code or would it work with legacy (non-segwit)? |
|
Yes, those pubtype, p2shtype and wiftype are correct, it only generates the wrong hash id for the generated tx, the generated tx look fine, everything is accepted by the network, I also tried the blockchain.transaction.broadcas method, it looks like it works fine, it generates the correct hash. |
|
I don't think it's using the hash from electrum server, it generates its own hash, because each project has different tx id |
yes, the backend https://github.com/KomodoPlatform/komodo-defi-framework/tree/dev generates and signs the txes itself, and then broadcasts the result through electrum... so it needs to know exactly how a tx is generated |
signature is the same as other coins, but for KCN, instead of sha256(sha256(tx)) it uses sha3_256(sha3_256(tx)) for the final tx, for LCN if (version & 0x8000) then uses sha3_256(sha3_256(tx)) otherwise uses sha256(sha256(tx)) https://github.com/JayBitron/electrumx/blob/master/electrumx/lib/tx.py#L1386C1-L1386C48 if you could add it there that would be great |
i am not a dev, so we need to open issue in https://github.com/KomodoPlatform/komodo-defi-framework and ask the devs to implement it |
I'm not familiar with the dex, we just need a wallet. I also fixed the contacts multi case |
|
GLEECBTC/komodo-defi-framework#2349 |
done |
|
@cipig Is it possible for you to build the final version for both desktop and mobile please so I can send them for users to use? |
I can't build official versions, i only have my own repos which i use for testing new coins, see eg https://github.com/cipig/komodo-wallet-desktop/actions |

No description provided.