From 9ec13d3d5d4166bf16d229cf45f83c2715960b85 Mon Sep 17 00:00:00 2001 From: Yongfeng LI Date: Fri, 13 Apr 2018 15:32:51 +0800 Subject: [PATCH] remove Template#Local --- blockchain/txbuilder/builder.go | 1 - blockchain/txbuilder/types.go | 6 ------ 2 files changed, 7 deletions(-) diff --git a/blockchain/txbuilder/builder.go b/blockchain/txbuilder/builder.go index 07aaff3c..16264a16 100644 --- a/blockchain/txbuilder/builder.go +++ b/blockchain/txbuilder/builder.go @@ -104,7 +104,6 @@ func (b *TemplateBuilder) Build() (*Template, *types.TxData, error) { tx = &types.TxData{ Version: 1, } - tpl.Local = true } if b.timeRange != 0 { diff --git a/blockchain/txbuilder/types.go b/blockchain/txbuilder/types.go index 6b58d95e..6c6f91e5 100644 --- a/blockchain/txbuilder/types.go +++ b/blockchain/txbuilder/types.go @@ -13,12 +13,6 @@ type Template struct { Transaction *types.Tx `json:"raw_transaction"` SigningInstructions []*SigningInstruction `json:"signing_instructions"` - // Local indicates that all inputs to the transaction are signed - // exclusively by keys managed by this Core. Whenever accepting - // a template from an external Core, `Local` should be set to - // false. - Local bool `json:"local"` - // AllowAdditional affects whether Sign commits to the tx sighash or // to individual details of the tx so far. When true, signatures // commit to tx details, and new details may be added but existing -- 2.11.0