Commit a105956f authored by 李伟@五瓣科技's avatar 李伟@五瓣科技

fix tree list

parent 11a717b6
...@@ -764,21 +764,14 @@ func (web *WebServicer) sendBatchTxsFromQueue(fromAddr string, toAddrs []string, ...@@ -764,21 +764,14 @@ func (web *WebServicer) sendBatchTxsFromQueue(fromAddr string, toAddrs []string,
beginOriginalTx = txF.Tx.Hash() beginOriginalTx = txF.Tx.Hash()
} }
for i := 0; i < batchTxSize; i++ { batchTxs = append(batchTxs, txF)
txAsBytes, err := txF.Tx.MarshalBinary()
batchTxs = append(batchTxs, txF) if err != nil {
txAsBytes, err := txF.Tx.MarshalBinary() return err
if err != nil {
return err
}
txsBytes = append(txsBytes, txAsBytes...)
if k == len(txFs)-1 {
break
}
} }
txsBytes = append(txsBytes, txAsBytes...)
if (k+1)%(batchTxSize) == 0 || k == len(txFs)-1 { if (k+1)%(batchTxSize) == 0 || k == len(txFs)-1 {
h := sha256.New() h := sha256.New()
......
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