From d3ebcc378e91eb16a4432c84d7bcc9f2923e7dba Mon Sep 17 00:00:00 2001 From: Artem Pikulin Date: Wed, 9 Jan 2019 14:47:10 +0700 Subject: [PATCH] Fix support of coins with txversion > 4 and standard sighash method. E.G. ECA (Electra) uses txversion:7. --- iguana/exchanges/LP_bitcoin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iguana/exchanges/LP_bitcoin.c b/iguana/exchanges/LP_bitcoin.c index a1de64564..87760d5ae 100644 --- a/iguana/exchanges/LP_bitcoin.c +++ b/iguana/exchanges/LP_bitcoin.c @@ -2866,7 +2866,7 @@ cJSON *bitcoin_txcreate(char *symbol,int32_t isPoS,int64_t locktime,uint32_t txv { cJSON *json = cJSON_CreateObject(); jaddnum(json,"version",txversion); - if (txversion >= 3) { + if (txversion == 3 || txversion == 4) { cJSON_AddBoolToObject(json,"overwintered",1); jaddnum(json,"expiryheight",0); if (txversion == 3) {