The current behaviour of FactomEventEmitter is to emit the current highest block immediately when a new event emitter is attached. This can cause problems where the user is only concerned with new blocks arriving in the future.
This PR adds the boolean option discardCurrent to FactomEventEmitter to allow the user to ignore the current tip of the blockchain when the listener is attached. It does not change behaviour for existing users and is therefore backwards compatible.
The current behaviour of
FactomEventEmitter
is to emit the current highest block immediately when a new event emitter is attached. This can cause problems where the user is only concerned with new blocks arriving in the future.This PR adds the boolean option
discardCurrent
toFactomEventEmitter
to allow the user to ignore the current tip of the blockchain when the listener is attached. It does not change behaviour for existing users and is therefore backwards compatible.