From f8b744658c7f811e845b9fd2362ea994b0b5ec98 Mon Sep 17 00:00:00 2001 From: Vladyslav Melnyk Date: Tue, 6 Aug 2019 20:37:28 +0300 Subject: [PATCH 1/3] mark class BlockInfoWithTransactions @JsonIgnore --- .../kotlin/com/github/jleskovar/btcrpc/BitcoinRpcDataTypes.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/kotlin/com/github/jleskovar/btcrpc/BitcoinRpcDataTypes.kt b/src/main/kotlin/com/github/jleskovar/btcrpc/BitcoinRpcDataTypes.kt index 3506f08..93a9d06 100644 --- a/src/main/kotlin/com/github/jleskovar/btcrpc/BitcoinRpcDataTypes.kt +++ b/src/main/kotlin/com/github/jleskovar/btcrpc/BitcoinRpcDataTypes.kt @@ -1,5 +1,6 @@ package com.github.jleskovar.btcrpc +import com.fasterxml.jackson.annotation.JsonIgnoreProperties import java.math.BigDecimal /** @@ -279,6 +280,7 @@ data class BlockInfo( val previousblockhash: String? = null, val nextblockhash: String? = null) +@JsonIgnoreProperties(ignoreUnknown = true) data class BlockInfoWithTransactions( val hash: String? = null, val confirmations: Long? = null, From 1cd458e2c2745dd57b5a67b893e4d7668a671ce8 Mon Sep 17 00:00:00 2001 From: Vladyslav Melnyk Date: Mon, 12 Aug 2019 20:29:16 +0300 Subject: [PATCH 2/3] mark class BlockInfo @JsonIgnore --- .../kotlin/com/github/jleskovar/btcrpc/BitcoinRpcDataTypes.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/com/github/jleskovar/btcrpc/BitcoinRpcDataTypes.kt b/src/main/kotlin/com/github/jleskovar/btcrpc/BitcoinRpcDataTypes.kt index 93a9d06..e1a1980 100644 --- a/src/main/kotlin/com/github/jleskovar/btcrpc/BitcoinRpcDataTypes.kt +++ b/src/main/kotlin/com/github/jleskovar/btcrpc/BitcoinRpcDataTypes.kt @@ -259,7 +259,7 @@ data class AddedNodeInfo( data class NodeAddress( val address: String? = null, val connected: String? = null) - +@JsonIgnoreProperties(ignoreUnknown = true) data class BlockInfo( val hash: String? = null, val confirmations: Long? = null, From dca26b2be4069810dd5936901f542452594643f4 Mon Sep 17 00:00:00 2001 From: Vladyslav Melnyk Date: Mon, 12 Aug 2019 20:48:15 +0300 Subject: [PATCH 3/3] minor refactoring --- .../kotlin/com/github/jleskovar/btcrpc/BitcoinRpcDataTypes.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/kotlin/com/github/jleskovar/btcrpc/BitcoinRpcDataTypes.kt b/src/main/kotlin/com/github/jleskovar/btcrpc/BitcoinRpcDataTypes.kt index e1a1980..d7921ad 100644 --- a/src/main/kotlin/com/github/jleskovar/btcrpc/BitcoinRpcDataTypes.kt +++ b/src/main/kotlin/com/github/jleskovar/btcrpc/BitcoinRpcDataTypes.kt @@ -259,6 +259,7 @@ data class AddedNodeInfo( data class NodeAddress( val address: String? = null, val connected: String? = null) + @JsonIgnoreProperties(ignoreUnknown = true) data class BlockInfo( val hash: String? = null,