OSDN Git Service

remove Template#Local
authorYongfeng LI <wliyongfeng@gmail.com>
Fri, 13 Apr 2018 07:32:51 +0000 (15:32 +0800)
committerYongfeng LI <wliyongfeng@gmail.com>
Fri, 13 Apr 2018 07:32:51 +0000 (15:32 +0800)
blockchain/txbuilder/builder.go
blockchain/txbuilder/types.go

index 07aaff3..16264a1 100644 (file)
@@ -104,7 +104,6 @@ func (b *TemplateBuilder) Build() (*Template, *types.TxData, error) {
                tx = &types.TxData{
                        Version: 1,
                }
-               tpl.Local = true
        }
 
        if b.timeRange != 0 {
index 6b58d95..6c6f91e 100644 (file)
@@ -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