Skip to content

Commit ba42bfe

Browse files
authored
Merge pull request #24 from HorizenOfficial/development
Allow pubkeyhash input, Update to Zend 3.0.3
2 parents c8fe389 + 8b9181e commit ba42bfe

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ MAINTAINER cronic@horizen.io
2020

2121
SHELL ["/bin/bash", "-c"]
2222

23-
# Latest release zen 3.0.2
23+
# Latest release zen 3.0.3
2424
# TODO: Update ZEN_COMMITTISH to newest tag
25-
ARG ZEN_COMMITTISH=v3.0.2
25+
ARG ZEN_COMMITTISH=v3.0.3
2626
ARG IS_RELEASE=false
2727
# cronic <cronic@zensystem.io> http://pool.sks-keyservers.net:11371/pks/lookup?search=0x219F55740BBF7A1CE368BA45FB7053CE4991B669&op=vindex
2828
# Luigi Varriale <luigi@zensystem.io> http://pool.sks-keyservers.net:11371/pks/lookup?search=0x7C20EDC1CABFC9D1005EADBF3C80D9DD9F971AB6&op=vindex

services/construction_service.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ func (s *ConstructionAPIService) estimateSize(operations []*types.Operation) flo
101101
continue
102102
}
103103
hashReplay, _ := hex.DecodeString("0000000000000000000000000000000000000000000000000000000000000000")
104-
script, err := txscript.PayToAddrReplayOutScript(addr, hashReplay,100)
104+
script, err := txscript.PayToAddrReplayOutScript(addr, hashReplay, 100)
105105
if err != nil {
106106
size += zen.P2PKHReplayScriptPubkeySize
107107
continue
@@ -342,7 +342,7 @@ func (s *ConstructionAPIService) ConstructionPayloads(
342342
inputAddresses[i] = address
343343
inputAmounts[i] = matches[0].Amounts[i].String()
344344

345-
if class != txscript.PubKeyHashReplayOutTy {
345+
if class != txscript.PubKeyHashReplayOutTy && class != txscript.PubKeyHashTy {
346346
return nil, wrapErr(
347347
ErrUnsupportedScriptType,
348348
fmt.Errorf("unupported script type: %s", class),
@@ -452,7 +452,7 @@ func (s *ConstructionAPIService) ConstructionCombine(
452452
fullsig := normalizeSignature(request.Signatures[i].Bytes)
453453
pkData := request.Signatures[i].PublicKey.Bytes
454454

455-
if class != txscript.PubKeyHashReplayOutTy {
455+
if class != txscript.PubKeyHashReplayOutTy && class != txscript.PubKeyHashTy {
456456
return nil, wrapErr(
457457
ErrUnsupportedScriptType,
458458
fmt.Errorf("unupported script type: %s", class),

services/network_service_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ var (
3030
defaultNetworkOptions = &types.NetworkOptionsResponse{
3131
Version: &types.Version{
3232
RosettaVersion: types.RosettaAPIVersion,
33-
NodeVersion: "3.0.2",
33+
NodeVersion: "3.0.3",
3434
MiddlewareVersion: &middlewareVersion,
3535
},
3636
Allow: &types.Allow{

services/types.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import (
2424
const (
2525
// NodeVersion is the version of
2626
// zend core we are using.
27-
NodeVersion = "3.0.2"
27+
NodeVersion = "3.0.3"
2828

2929
// HistoricalBalanceLookup indicates
3030
// that historical balance lookup is supported.

0 commit comments

Comments
 (0)