Skip to content

Commit

Permalink
Fix support of coins with txversion > 4 and standard sighash method.
Browse files Browse the repository at this point in the history
E.G. ECA (Electra) uses txversion:7.
  • Loading branch information
artemii235 committed Jan 9, 2019
1 parent e8c5896 commit d3ebcc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iguana/exchanges/LP_bitcoin.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit d3ebcc3

Please sign in to comment.