Author

Topic: [DOGED][REBRANDING TO $XVG] DogeCoinDark [Scrypt][privacy/TOR/i2P resources] - page 128. (Read 206309 times)

legendary
Activity: 2087
Merit: 1015
More specifically it gets funky when trying to read the coinbase scriptSig
https://github.com/doged/electrum-doged-server/blob/92107583d18601079865e8d4cee278d69950fb33/src/deserialize.py#L217

For example it thinks the scriptSig of the following transaction is 72,234,624,218,038,271 bytes long
http://blockexperts.com/doged/tx/077d08df77f3db87fb9cd0c35431f005f59247edbffa61fb0f35dea6ac2177b1


Edit: coinbase transactions don't have a scriptSig I think...
hero member
Activity: 658
Merit: 500
I started poking around a bit and it seems to fail after reading an insanely large number of bytes from the transaction then goes out of bounds on the next read, will keep digging.

Thank you for assisting.
legendary
Activity: 2087
Merit: 1015
I started poking around a bit and it seems to fail after reading an insanely large number of bytes from the transaction then goes out of bounds on the next read, will keep digging.
hero member
Activity: 658
Merit: 500
Make that 1M in total.

update:

1 MILLION DOGED BOUNTY IN TOTAL!


Bounty to anyone who can assist DogedDEV in solving this electrum server problem. And if you solve this yourself Dev, it's yours  Grin

DogedDEV   = 100K DOGED
CryptoJohn  = 100K DOGED
Ozboy2014  = 1300K DOGED
Spaksi         = 500K DOGED

TOTAL BOUNTY = 1,000,000 DOGED

LATEST TOTAL BOUNTY = 2,000,000 DOGED
full member
Activity: 238
Merit: 100
hero member
Activity: 686
Merit: 500
hero member
Activity: 658
Merit: 500
electrum@electrum-server:~/electrum-doged-server$ ./run_electrum_doged_server
INFO:electrum-doged:Starting Electrum server on electrum-doged.space
INFO:electrum-doged:Database version 3
INFO:electrum-doged:Blockchain height 181697
INFO:electrum-doged:UTXO tree root hash: cf629bd2e7178dfd322d974206555e3ee0ba7c6a1c6fc3291e5401682f7271ac
INFO:electrum-doged:Coins in database: 18198529690414
INFO:electrum-doged:Blockchain is up to date.
INFO:electrum-doged:ERROR: cannot parse 523fd4a06056f05dd949136cd79b3dcd08f944c8ff668d21f57cc15a06d00e27
INFO:electrum-doged:ERROR: cannot parse 7e670bbc002f73d9b0c2e536a7568075b3d02bcae82e8dfe95f6487df55af011

INFO:electrum-doged:Memory pool initialized.
INFO:electrum-doged:blockchain: 181697 (0.004s)
INFO:electrum-doged:dogecoindarkd is responding
INFO:electrum-doged:TCP server started on 104.236.133.57:50001
INFO:electrum-doged:SSL server started on 104.236.133.57:50002
INFO:electrum-doged:joining IRC

so as you can see it looks like its doing better, its showing the genesis hash properly, unlike before..


also, so now there is a 300k doged bounty for anyone who can help me finish this.. but i have a feeling ill end up getting it.. never know though  Grin

OK here's the deal.

Make that 500K in total to make it worth your while. That's a 300K commitment from me. Come on boys, don't just sit on the fence line. You want solutions, chip in.

Bounty to anyone who can assist DogedDEV in solving this electrum server problem. And if you solve this yourself Dev, it's yours  Grin

DogedDEV = 100K DOGED
CryptoJohn = 100K DOGED
Ozboy2014 = 300K DOGED

TOTAL BOUNTY = 500K DOGED
legendary
Activity: 1708
Merit: 1009
$XVG - The Standard in Crypto as a Currency!
electrum@electrum-server:~/electrum-doged-server$ ./run_electrum_doged_server
INFO:electrum-doged:Starting Electrum server on electrum-doged.space
INFO:electrum-doged:Database version 3
INFO:electrum-doged:Blockchain height 181697
INFO:electrum-doged:UTXO tree root hash: cf629bd2e7178dfd322d974206555e3ee0ba7c6a1c6fc3291e5401682f7271ac
INFO:electrum-doged:Coins in database: 18198529690414
INFO:electrum-doged:Blockchain is up to date.
INFO:electrum-doged:ERROR: cannot parse 523fd4a06056f05dd949136cd79b3dcd08f944c8ff668d21f57cc15a06d00e27
INFO:electrum-doged:ERROR: cannot parse 7e670bbc002f73d9b0c2e536a7568075b3d02bcae82e8dfe95f6487df55af011

INFO:electrum-doged:Memory pool initialized.
INFO:electrum-doged:blockchain: 181697 (0.004s)
INFO:electrum-doged:dogecoindarkd is responding
INFO:electrum-doged:TCP server started on 104.236.133.57:50001
INFO:electrum-doged:SSL server started on 104.236.133.57:50002
INFO:electrum-doged:joining IRC

so as you can see it looks like its doing better, its showing the genesis hash properly, unlike before..


also, so now there is a 300k doged bounty for anyone who can help me finish this.. but i have a feeling ill end up getting it.. never know though  Grin
legendary
Activity: 1680
Merit: 1003
Well, That's Crypto :-\
i'm in for 100k as well for whomever steps up to help dev solve this issue.
legendary
Activity: 1708
Merit: 1009
$XVG - The Standard in Crypto as a Currency!
so i made these modifications, and the UTXO tree root shows up as block 77's hash, instead of a sha256 hash, and there is a number in the coins database now, instead of 0

looks like some progress is being made..
legendary
Activity: 1708
Merit: 1009
$XVG - The Standard in Crypto as a Currency!
https://github.com/doged/electrum-doged-server/blob/master/src/utils.py#L56

i think this needs a scrypt function, and an import scrypt at the top..

I dunno, looks the same as electrum-ltc-server. Maybe just run a diff on the whole electrum-ltc-server repo with your dogedark repo and see if you can find error that way...

It looks like you forked from ixcoin, which is sha256, right? So, maybe you can find issue by diffing with ltc repo, or just fork theirs.

thats the thing, ltc's has sha256 in their src files:

https://github.com/pooler/electrum-ltc-server/blob/master/src/utils.py#L54

dash implemented an x11 algo however:

https://github.com/Propulsions/electrum-drk-server/blob/master/src/utils.py#L55

so im guessing i need to import scrypt or ltc_scrypt, which is odd because ltc didnt do that in theirs..

so import ltc_scrypt at the top, then #L54 should be something like

HashScrypt = lambda x: ltc_scrypt.getPoWHash(x)

anyone else following? im gonna give this a try later n see if its what was needed..

update: also i noticed its needed here: https://github.com/doged/electrum-doged-server/blob/master/src/blockchain_processor.py#L184

return rev_hex(HashScrypt(header_to_string(header).decode('hex')).encode('hex'))

legendary
Activity: 3136
Merit: 1116
https://github.com/electrumalt/electrum-doge-server/blob/master/src/utils.py#L56

i think this needs a scrypt function, and an import scrypt at the top..

I dunno, looks the same as electrum-ltc-server. Maybe just run a diff on the whole electrum-ltc-server repo with your dogedark repo and see if you can find error that way...

It looks like you forked from ixcoin, which is sha256, right? So, maybe you can find issue by diffing with ltc repo, or just fork theirs.
legendary
Activity: 1708
Merit: 1009
$XVG - The Standard in Crypto as a Currency!
hero member
Activity: 658
Merit: 500


heres a screencap of where i am..

client is connected to the server, server is showing new blocks, and lets the client connect, but doesnt parse transactions.

im so close, i hope i win my bounty.  Grin

Let's double that. I'll match Dev's 100K bounty for a fix to the above request. Grin
legendary
Activity: 1708
Merit: 1009
$XVG - The Standard in Crypto as a Currency!


heres a screencap of where i am..

client is connected to the server, server is showing new blocks, and lets the client connect, but doesnt parse transactions.

im so close, i hope i win my bounty.  Grin
legendary
Activity: 1708
Merit: 1009
$XVG - The Standard in Crypto as a Currency!
doged radio is live http://dogecoindark.net/radio

covertress from gaiacoin is live =]
legendary
Activity: 1708
Merit: 1009
$XVG - The Standard in Crypto as a Currency!
TONIGHTS LIVE GUEST https://twitter.com/covertress ONLY ON #DOGEDRADIO 8PM CST - 11PM CST ; be there! * SHOW TIME MOVED * 1 hour earlier

http://DogecoinDark.net/radio
legendary
Activity: 3136
Merit: 1116
...
(2) somewhere, i missed an entry for genesis hash, merkle, pubkey address, or script address in the server source code.
...

I'd guess this one, but won't have time to look at it for few days at least.
legendary
Activity: 1708
Merit: 1009
$XVG - The Standard in Crypto as a Currency!
im putting up a 100k DOGED bounty for the electrum server fix, or code that leads to a fix. (i'll be actively working on it still as well)

others feel free to join in the bounty.

i've gone over it a dozen times, and i get the exact same outcome every time..

https://github.com/doged/electrum-doged-server

it starts up, signs into irc, connects to coin daemon, (gets parsing errors on tx's while creating db and headers), and it allows the electrum client to connect, including ssl..

im sure i've done everything properly thus far.

electrum client is working and is here (in ubuntu, run the ./electrum-doged):

https://github.com/doged/electrum-doged

things i feel it may be:

(1) bitcoinrpc.cpp might need a patch that allows better communication with electrum (im currently looking into this)
(2) somewhere, i missed an entry for genesis hash, merkle, pubkey address, or script address in the server source code.
(3) im an idiot, and made a typo somewhere
Jump to: