opened
redskate
username_0
My application waits for a onSyncDone()  event of a test ethereumj network using the genesis file (see bottom here) and a configuration which resets every time the database.

In onSyncDone() a contract is submitted.

ethereumj is starting mining, each transaction mines without using gas. The difficulty arises a bit at each one. It mines and mines ... and I am asking myself when the first block will be "completed" (and the onSyncDone() will be fired / executed).

What can I do in order to avoid all that (empty 0-gas-mining)?

=======
the genesis file used:
{
  "comment1": "This genesis file should be copied to the ethereumj resource path",
  "comment2": "/Users/fabio/Documents/workspace/ethereumj/ethereumj-core/build/resources/main/genesis/",
  "config": {
    "chainId": 313,
    "eip158Block": 10,
    "byzantiumBlock": 1700000,

    "headerValidators": [
      {"number": 10,     "hash": "0xb3074f936815a0425e674890d7db7b5e94f3a06dca5b22d291b55dcd02dde93e"},
      {"number": 585503, "hash": "0xe8d61ae10fd62e639c2e3c9da75f8b0bdb3fa5961dbd3aed1223f92e147595b9"}
    ]
  },

  "nonce": "0x0000000000000042",
  "timestamp": "0x00",
  "parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
  "extraData": "0x3535353535353535353535353535353535353535353535353535353535353535",
  "gasLimit":   "0xFFFFFFF",
  "gasPrice":   "0x0F",
  "difficulty": "0x01",
  "mixhash": "0x0000000000000000000000000000000000000000000000000000000000000000",
  "coinbase": "0x0000000000000000000000000000000000000000",

  "alloc": {
  
    "0000000000000000000000000000000000000013": {
      "balance": "1000"
    },
    "0000000000000000000000000000000000000014": {
      "balance": "1000"
    },
    "0000000000000000000000000000000000000015": {
      "balance": "1000"
    },
    "0000000000000000000000000000000000000016": {
      "balance": "1000"
    },
    "0000000000000000000000000000000000000017": {
      "balance": "1000"
    },
    "0000000000000000000000000000000000000018": {
      "balance": "1000"
    },
    "0000000000000000000000000000000000000019": {
      "balance": "1000"
    },
    "000000000000000000000000000000000000001a": {
      "balance": "1000"
    },
    "000000000000000000000000000000000000001b": {
      "balance": "1000"
    },
    "000000000000000000000000000000000000001c": {
      "balance": "1000"
    },
    "000000000000000000000000000000000000001d": {
      "balance": "1000"
    },
    "000000000000000000000000000000000000001e": {
      "balance": "1000"
    },
    "000000000000000000000000000000000000001f": {
      "balance": "1000"
    }

  }
}

====== the conf used:
peer.discovery.enabled = false
peer.listen.port = 20202
peer.networkId = 888

cache.flush.memory = 0
cache.flush.blocks = 1
sync.enabled = false
mine.start = true


database.dir = sksDB
database.reset = true	

# Key value data source values: [leveldb/redis/mapdb]
keyvalue.datasource=rocksdb


// a number of public peers for this network (not all of then may be functioning)
// need to get Seed/Miner node info and fill it in active peer section of all regular nodes like this:
peer.active = 
[ 
	{
		ip= 10.0.1.120
		port= 20202
		nodeName = "sks1"
		name = b3ea40366eae0206f7923a38c61ccfd1fcbd1185aa46596cfcba5eb762d484c15f998d6447162905507212742fbbda96507667d834192dd32bdc980e08e16ad3
	} 
]
	       
// special genesis for this test network

genesis = eth_genesis_sksprivate.json
blockchain.config.name = "sks"
blockchain.config.class = "org.ethereum.config.blockchain.FrontierConfig"
How many empty transactions should be mined until the first block is (when) finished ?
issue
closed
redskate
username_0
issue