OSDN Git Service

clean
authorHAOYUatHZ <haoyu@protonmail.com>
Fri, 21 Jun 2019 08:03:43 +0000 (16:03 +0800)
committerHAOYUatHZ <haoyu@protonmail.com>
Fri, 21 Jun 2019 08:03:43 +0000 (16:03 +0800)
federation/warder.go

index 322e342..8038cb8 100644 (file)
@@ -122,8 +122,7 @@ func (w *warder) processCrossTx(ormTx *orm.CrossTransaction) error {
                return err
        }
 
-       inputsCnt := getInputsCnt(destTx)
-       signersSigns := make([][][]byte, inputsCnt)
+       signersSigns := make([][][]byte, getInputsCnt(destTx))
 
        signerSigns, err := w.getSigns(destTx, ormTx)
        if err != nil {