Create account

Nikamoto
2002d
Trying some bch real time app with bitsocket : http://snakebch.ml (a quick on chain game I just made)
The latency is soooooo high, transactions takes seconds; so it's impossible to do real time app on bch right now
unwriter
replied 2002d
That's super cool. I think the latency comes from tx building and NOT broadcasting, which means room for improvement. Could try pre-building the tx and broadcast when user press button
unwriter
replied 2002d
From my experience, the tx is near instant via bitsocket - so I think the tx pre-build approach should work :)
Nikamoto
replied 2002d
I'll try that, thanks ! Hope it'll work
unwriter
replied 2002d
Good luck! Looking forward to playing with it. Also feel free to join the bitdb chatroom, there are many others working on bitcoin apps https://t.me/joinchat/HH1DDQ8pZlSlsdNcKgIcxw
Nikamoto
replied 2000d
I'm using your datacash lib, so I tried to split the build and send process, and I even tried to build 3 different transaction with 3 different rpc, and 90% of the time it takes ...
Nikamoto
replied 2000d
more than 600ms to receive it back thought bitsocket, I'll try maybe with a different library and a different network connection but I'm afraid it won't work :)
replied 2002d
Awesome work!
replied 2001d
I wanted to try playing your game but wasn't sure what to do. I tried inputting a private key with a 5000 satoshi balance but nothing happened.
Nikamoto
replied 2001d
Hmm, are you using a modern browser ? I just retried (i'm using firefox) and it worked
Can you try and see if when you play transaction are sent ? (Click on the "Please see here" link)
Nikamoto
replied 2001d
Anyway I'm rewritting it right now to make it more instant (thanks to unwritter advice), so hopefully it will work once that done !
Nikamoto
replied 2001d
You can try to press F12 to open the "dev panel" and see if there is some errors (if so post them) : the "sending ..." is when you do a transaction, and so on
replied 2001d
I was using Chrome. Do I just paste a private key in that box and hit enter? And I have no coding knowledge so can't help you with the errors.
Nikamoto
replied 2001d
Once the private key is enter you can play the game with the arrows of your keyboard. Maybe make sure to click on the game to it "gets the focus". I know it's not really user friendly
replied 2001d
No luck. I'm using the key from a paper wallet generated from bitcoin.com. it's not like a legacy v. cashaddr issue is it?
Nikamoto
replied 2000d
I just retried, and it failed, bitsocket seems broken for me
For your question, I'm not an expert of all these details but this issue is for public key, but maybe it's the raw vs WIF
Nikamoto
replied 2000d
I'll try later with paper wallet from bitcoin.com see if it's work, or try to give a private key, it may be a fun challenge to try to encrypt it with your public key (if it's possible)