problem: Bitcoin head check may lag because it checks it only once in 15 seconds

solution: use ZeroMQ connection to listen for new blocks
This commit is contained in:
Igor Artamonov
2022-06-25 21:26:10 -04:00
parent cdf3e90877
commit ede552be59
12 changed files with 283 additions and 14 deletions

View File

@@ -18,7 +18,7 @@ class ConfiguredUpstreamsSpec extends Specification {
_ * getDefaultMethods(Chain.ETHEREUM) >> new DefaultEthereumMethods(Chain.ETHEREUM)
}
def configurer = new ConfiguredUpstreams(
currentUpstreams, Stub(FileResolver), Stub(UpstreamsConfig), Stub(CachesFactory)
currentUpstreams, Stub(FileResolver), Stub(UpstreamsConfig)
)
def methods = new UpstreamsConfig.Methods(
[
@@ -42,7 +42,7 @@ class ConfiguredUpstreamsSpec extends Specification {
_ * getDefaultMethods(Chain.ETHEREUM) >> new DefaultEthereumMethods(Chain.ETHEREUM)
}
def configurer = new ConfiguredUpstreams(
currentUpstreams, Stub(FileResolver), Stub(UpstreamsConfig), Stub(CachesFactory)
currentUpstreams, Stub(FileResolver), Stub(UpstreamsConfig)
)
def methods = new UpstreamsConfig.Methods(
[