Commit graph

3 commits

Author SHA1 Message Date
eupn
f9c5505e9f Report reorg depth in block status ()
* Calculate reorg depth in BlockStatus::Reorg enum member

* rustfmt

* Fix reorg height calculation and implement reorg test

* rustfmt

* Report reorg depth in webhook payload

* Add optional depth field to the block webhook JSON reply
2019-05-24 21:44:28 +02:00
Mike Dallas
a58d671853 https support for webhooks ()
* add TLS support
* configurable nthreads and timeout
2019-03-12 13:23:40 +01:00
Mike Dallas
d560a36dd6 Event callbacks for Network and Chain Events ()
* Add hooks for network and chain events. Move logging to an EventLogger
* implement webhooks
* fix failing test
* remove unnecessary 'pub'
* add some metadata to the json payload
* avoid unecessary init
* resolve conflicts
2019-02-26 12:24:50 -08:00