Leader Query Next Block On Submission (#20)
Leader Query Next Block On Submission (#20)

* Coinbase value calculation

* Move fees sum in coinbase value calculation

* Fix block reward terminology

* Add P2PKH script generation & test

* Serialize coinbase transaction & test

* Remove block reward calculation

Reason: it will be provided by the pool leader.

* Add integration test file

* Start working on mining task class

* Add base58 requirement and address test

* Address extraction implementation

* Trailing comma

* [minor] Remove trailing comma in comment

* Coverage specify source folder

* Mining task initial implementation

* Add mining task test file

* MiningTask implementation and test

Also change transaction to hash its data (and test it).

* Add protocol function to parse/produce JSON + test

* Add more checks in protocol parsing test

* Integration test

* Fix merkle tree byte ordering bug

* Add missing package to server & condvar

Condition variable in the miner.
Missing zmq in server's package.json.
Removed unused require "credentials.json".

* Protocol expect JSON object, return string

ZMQ takes care of the JSON parsing/composition for us.

* Miner implementation

* Query for work after block submission

DrPandemic/pickaxe,DrPandemic/pickaxe,DrPandemic/pickaxe,DrPandemic/pickaxe