xaya / libxayagame

MIT License
21 stars 19 forks source link

Test environment for Ethereum-based chain #113

Closed domob1812 closed 3 years ago

domob1812 commented 3 years ago

Implement a test environment (in xayagametest) for an Ethereum-based chain (using Xaya X and Ganache).

The main change here is to optionally allow games to specify just a genesis height without a corresponding hash, in which case the hash will be taken from the blockchain and any hash is accepted at the specified height. This is required since Ganache's genesis block does not have a fixed block hash.