Commit 3351610c authored by heyubin's avatar heyubin Committed by vipwzw

add by hyb for lint

parent 3e8bc1f7
...@@ -94,10 +94,12 @@ func (c *Jrpc) MultiSigAccTransferOutTx(param *mty.MultiSigExecTransferFrom, res ...@@ -94,10 +94,12 @@ func (c *Jrpc) MultiSigAccTransferOutTx(param *mty.MultiSigExecTransferFrom, res
// MultiSigAddresList 获取owner地址上的多重签名账户列表{multiSigAddr,owneraddr,weight} // MultiSigAddresList 获取owner地址上的多重签名账户列表{multiSigAddr,owneraddr,weight}
func (c *Jrpc) MultiSigAddresList(in *types.ReqString, result *interface{}) error { func (c *Jrpc) MultiSigAddresList(in *types.ReqString, result *interface{}) error {
reply, err := c.cli.ExecWalletFunc(mty.MultiSigX, "MultiSigAddresList", in) data, err := c.cli.ExecWalletFunc(mty.MultiSigX, "MultiSigAddresList", in)
if err != nil { if err != nil {
return err return err
} }
*result = reply var ownerAttrs *mty.OwnerAttrs
ownerAttrs = data.(*mty.OwnerAttrs)
*result = ownerAttrs
return nil return nil
} }
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
package wallet package wallet
// MaxCountPerTime: 每次获取多重签名账户的数量
const ( const (
MaxCountPerTime int64 = 100 MaxCountPerTime int64 = 100
) )
...@@ -64,9 +64,7 @@ func (store *multisigStore) listOwnerAttrs() (*mtypes.OwnerAttrs, error) { ...@@ -64,9 +64,7 @@ func (store *multisigStore) listOwnerAttrs() (*mtypes.OwnerAttrs, error) {
bizlog.Error("listOwnerAttrs", "Decode err", err) bizlog.Error("listOwnerAttrs", "Decode err", err)
continue continue
} }
for _, ownerAttr := range ownerAttrs.Items { replayOwnerAttrs.Items = append(replayOwnerAttrs.Items, ownerAttrs.Items...)
replayOwnerAttrs.Items = append(replayOwnerAttrs.Items, ownerAttr)
}
} }
return &replayOwnerAttrs, nil return &replayOwnerAttrs, nil
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment