Skip to content
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

Server run successfully but 0 blocks are shown at homepage #49

Closed
sunggeorge opened this issue Dec 27, 2013 · 4 comments
Closed

Server run successfully but 0 blocks are shown at homepage #49

sunggeorge opened this issue Dec 27, 2013 · 4 comments

Comments

@sunggeorge
Copy link

All blocks are loaded during installation:
python -m Abe.abe --config mycoin.conf --commit-bytes 100000 --no-serve

However after I run the server by:
python -m Abe.abe --config mycoin.conf

It only show block 0 and zero coin created at home page. What's wrong with my Abe settings?

Currency Code Block Time Started Age (days) Coins Created Avg Coin Age % CoinDD
Applecoin APC 0 2013-11-17 20:41:12 2013-11-17 39.8439 0

@jtobey
Copy link
Member

jtobey commented Dec 27, 2013

This would happen if Applecoin uses a block hashing algorithm other than Bitcoin's double-SHA256. Abe can not recognize Block 1's previous block hash field as referring to Block 0, and so forth. The copperlark branch in GitHub works around this issue for Copperlark, which uses SHA3/Keccak. Alternatively, you may have success with RPC loading and disabling the block hash check in Abe/DataStore.py.

@sunggeorge
Copy link
Author

Thanks for your reply.

APC is a scrypt-jane cryptocurrency. I was trying ppcoin branch because they are all POS coins. I am not familiar with crypto-programming. Just tried Copperlark but get "ImportError: No module named sha3". By the way should I always "merge" the branch with master? I always use "git clone -b".

I will try your "RPC" & "disabling blockhash check" suggestion. I can set loader to "RPC" but don't know how to disable blockhash check. Any hint?

@sunggeorge
Copy link
Author

I disable blockhash check according to this:
829890b

My new problem is set the "genesis data" inside "tn_hash_hex" in "Abe/genesis_tx.py". I verified for BTC and other altcoins the genesis key should be "getrawtransaction(tn id of block heigh(0))" (Hope I am right)

It's strange that there's no detailed data for block height 0''s transaction from APC's explorer and wallet client.
http://coin-base.org/apc_blockcrawler/

No information can be found for transaction id: 12c93e51d21697a554edd872dad2018346671e0dab9cff977de072873e9d3101

Not sure it's my problem or APC's design. I am now asking the APC developer too.

@sunggeorge
Copy link
Author

It's ok now. Just stick to 829890b and comment out 2 more places that generate exception.

Everything is fine just same amount need X100 issue now:
829890b

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants