From 51503517cdff2699e6baf381312721d9f9da29fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9A=D0=B8=D1=80=D0=B8=D0=BB=D0=BB?= Date: Mon, 1 Jul 2024 15:40:32 +0400 Subject: [PATCH] Full event field --- .../io/emeraldpay/dshackle/rpc/SubscribeChainStatus.kt | 1 + .../io/emeraldpay/dshackle/rpc/SubscribeChainStatusTest.kt | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/src/main/kotlin/io/emeraldpay/dshackle/rpc/SubscribeChainStatus.kt b/src/main/kotlin/io/emeraldpay/dshackle/rpc/SubscribeChainStatus.kt index 3a629a69d..e8c468f2b 100644 --- a/src/main/kotlin/io/emeraldpay/dshackle/rpc/SubscribeChainStatus.kt +++ b/src/main/kotlin/io/emeraldpay/dshackle/rpc/SubscribeChainStatus.kt @@ -122,6 +122,7 @@ class SubscribeChainStatus( .setVersion(Global.version) .build(), ) + .setFullResponse(true) .build() } } diff --git a/src/test/kotlin/io/emeraldpay/dshackle/rpc/SubscribeChainStatusTest.kt b/src/test/kotlin/io/emeraldpay/dshackle/rpc/SubscribeChainStatusTest.kt index 552444202..37c894920 100644 --- a/src/test/kotlin/io/emeraldpay/dshackle/rpc/SubscribeChainStatusTest.kt +++ b/src/test/kotlin/io/emeraldpay/dshackle/rpc/SubscribeChainStatusTest.kt @@ -225,6 +225,11 @@ class SubscribeChainStatusTest { ) .build(), ) + .apply { + if (headEvent) { + setFullResponse(true) + } + } .build() }