Author

Topic: BBQCoin, a fork which need help for start himself. (Read 1978 times)

newbie
Activity: 12
Merit: 0
In that case it might be useful to turn on the testnet flag, and observe that if you run as a test net you don't care about that assert, which could lead to wondering what purpose that assert actually serves if in fact is is not even worthy of being tested (that is, the test net functions fine without it, so if it is not worth testing maybe it is not even worth worrying about at all... just run with the testnet flag on like multicoin does...)

-MarkM-


Hmm, I have commented the asserts.
Quote
BBQCoin version 0.6.0.5-beta
Default data directory /Users/cubox/Library/Application Support/BBQCoin
bbqcoin server starting
Loading addresses...
dbenv.open strLogDir=/Users/cubox/Library/Application Support/BBQCoin/database strErrorFile=/Users/cubox/Library/Application Support/BBQCoin/db.log
[cubox@Thunderaan:~/Documents/Prog/C/BBQCoin/src]$ Loaded 0 addresses
 addresses                40ms
Loading block index...
e2f47d1ba3559692b9ed3c34885ecae7ba1f9a9900ff13cbf2717557f94b86ed
bf7cb1a53f186653ad23982c08c8af377856769311992147821c19420376e14d
5de82b7130323fb8e379a1e1919f6023bcbf3c6662f59666859103819e6a7a53
CBlock(hash=e2f47d1ba3559692b9ed, PoW=80b3c8beb50e079f2809, ver=1, hashPrevBlock=12a765e31ffd4059bada, hashMerkleRoot=5de82b7130, nTime=1341328641, nBits=1e0ffff0, nNonce=226306, vtx=1)
  CTransaction(hash=5de82b7130, ver=1, vin.size=1, vout.size=1, nLockTime=0)
    CTxIn(COutPoint(0000000000, -1), coinbase 04ffff001d01041330332f30372f3230313220424251436f696e2e)
    CTxOut(nValue=42.00000000, scriptPubKey=03dffa61cdcb218123a97cb86eaa44)
  vMerkleTree: 5de82b7130
REORGANIZE

And it's stop here. So, this is not only the asserts Sad (I enabled -debug)
newbie
Activity: 12
Merit: 0
Thanks for the replies,
Yeah, I understand what you said, but i'm making a fork for fun. I'm trying to understand the code, and I have actually a problem with this damn genesis block.
I can't contribute to bitcoin-dev because i'm learning coding, and I don't have the level to pretends adding features into bitcoin. Now, I want to understand how it's work by having my own fork to test, and do huges transactions, making a pool, etc.
I can't use the testnet, because this fork will be used and I don't want people to ask me "why testnet and not the main network ?".
On the IRC, some users tell me to put this thread in alternate cryptocurrencies, so there is in. If I put it in the technical section, users will tell me that it's not bitcoin :/

I hope you understand, but everyone have to learn before helping Smiley

(Sorry if bad language, not my native (And NO, I will not post this in the French subforum.))

EDIT : For the "no one want to see it" I don't understand... So you mean I don't have to talk about it here, or I don't have to release it on github ?
legendary
Activity: 2492
Merit: 1473
LEALANA Bitcoin Grim Reaper
I don't think he actually intends to release this as a new coin. Seems to me like he wants to poke around the code for fun and happened to have an issue relating to merkle roots and the genesis block. Maybe not the proper board to put this in (Technical Issues might be better), but he's just trying to understand the code.

Well he should poke around it in private and not publicly. No one wants to see that lol Cheesy Cheesy
legendary
Activity: 2940
Merit: 1090
In that case it might be useful to turn on the testnet flag, and observe that if you run as a test net you don't care about that assert, which could lead to wondering what purpose that assert actually serves if in fact is is not even worthy of being tested (that is, the test net functions fine without it, so if it is not worth testing maybe it is not even worth worrying about at all... just run with the testnet flag on like multicoin does...)

-MarkM-
member
Activity: 76
Merit: 10
I don't think he actually intends to release this as a new coin. Seems to me like he wants to poke around the code for fun and happened to have an issue relating to merkle roots and the genesis block. Maybe not the proper board to put this in (Technical Issues might be better), but he's just trying to understand the code.
legendary
Activity: 1498
Merit: 1000
Seriously bro if you can't figure it out you shouldn't making an alternate chain.

SCAM ALERT. PONZI!  Grin Grin

Agreed you need to know what your doing before you can start a coin, if you know how to code, why don't you put your resources to helping the bitcoin-dev team
legendary
Activity: 2492
Merit: 1473
LEALANA Bitcoin Grim Reaper
Seriously bro if you can't figure it out you shouldn't making an alternate chain.

SCAM ALERT. PONZI!  Grin Grin
newbie
Activity: 12
Merit: 0
 Hi

I'm making a fork of litecoin, for fun, and looking how bitcoin works.
The github repo is here : http://github.com/Cubox-/BBQCoin

Actually, everything is done, but I need a genesis block, so i decided to generate a block with the litecoin genesis, and put this new block into my code.
Actually, the code fail at
Quote
Assertion failed: (block.hashMerkleRoot == uint256("0x3b8285cc30f63ca337c2168d52d7f810ff62a400e9e9e5411aeeeb17ba93f48f")), function LoadBlockIndex, file main.cpp, line 1939.
I don't know where is the problem, but i can give you the litecoin code https://github.com/coblee/litecoin/blob/master/src/main.cpp#L1911 and my new block info.
My genesis block infos is here https://github.com/Cubox-/BBQCoin/blob/master/src/main.cpp#L1912
http://cubox.me:2750/block/bf7cb1a53f186653ad23982c08c8af377856769311992147821c19420376e14d
http://cubox.me:2750/rawtx/21be6eb97f29e4da7373caf1a2aab0f9ebf102e93c3467f4e4a69fbe4d206c85

I'm not very familiar with forums, so if I miss to give some info, just tell me Smiley

Thanks
Jump to: