dirtybits / catalystog

Catalyst (CST) is a new private, secure, and egalitarian cryptocurrency based on CryptoNote/Bytecoin protocols.
GNU Lesser General Public License v3.0
5 stars 0 forks source link

[Pre-release][on catalystd execution] Exception in main() - Genesis block failed to add #14

Open dirtybits opened 6 years ago

dirtybits commented 6 years ago

Upon running ./catalystd in cstdev/catalyst/bin the following error will occur:

Starting multicore ring checker using 4/8 cpus
Exception in main() - Genesis block failed to add
terminate called after throwing an instance of 'std::logic_error'
  what():  Genesis block failed to add
Aborted (core dumped)

Looks like we'll need to either hardcode it in, or implement a Generate Genesis function: https://github.com/bcndev/bytecoin/issues/33

ghost commented 6 years ago

Yes, I noticed this also. As I'm not aware if you have set premine, and if so, what are you looking after from a project point of view, for the moment I don't touch anything so you can configure it as you want ;)

Noticed this also: https://github.com/nasa8x/node-genesis-block

dirtybits commented 6 years ago

https://github.com/cryptonotefoundation/cryptonote/blob/8edd998304431c219b432194b7a3847b44b576c3/src/Daemon/Daemon.cpp#L54

void print_genesis_tx_hex() {
  Logging::ConsoleLogger logger;
  CryptoNote::Transaction tx = CryptoNote::CurrencyBuilder(logger).generateGenesisTransaction();
  CryptoNote::BinaryArray txb = CryptoNote::toBinaryArray(tx);
  std::string tx_hex = Common::toHex(txb);

  std::cout << "Insert this line into your coin configuration file as is: " << std::endl;
  std::cout << "const char GENESIS_COINBASE_TX_HEX[] = \"" << tx_hex << "\";" << std::endl;

  return;
}