kick of bad peers

This commit is contained in:
obscuren
2014-10-07 11:18:46 +02:00
parent 677836cbee
commit 0015ce1e35
5 changed files with 55 additions and 78 deletions

View File

@ -33,9 +33,9 @@ func NewJSBlock(block *ethchain.Block) *JSBlock {
return &JSBlock{}
}
var ptxs []JSTransaction
var ptxs []*JSTransaction
for _, tx := range block.Transactions() {
ptxs = append(ptxs, *NewJSTx(tx, block.State()))
ptxs = append(ptxs, NewJSTx(tx, block.State()))
}
list := ethutil.NewList(ptxs)