forked from forks/go-ethereum
Format
This commit is contained in:
parent
e280a2a7e3
commit
f78bd4d5d0
2 changed files with 8 additions and 11 deletions
|
|
@ -1,9 +1,9 @@
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/ethereum/ethutil-go"
|
"github.com/ethereum/ethutil-go"
|
||||||
"errors"
|
|
||||||
"log"
|
"log"
|
||||||
"math/big"
|
"math/big"
|
||||||
)
|
)
|
||||||
|
|
@ -24,7 +24,6 @@ func NewBlockChain() *BlockChain {
|
||||||
bc.TD = new(big.Int)
|
bc.TD = new(big.Int)
|
||||||
bc.TD.SetBytes(ethutil.Config.Db.LastKnownTD())
|
bc.TD.SetBytes(ethutil.Config.Db.LastKnownTD())
|
||||||
|
|
||||||
|
|
||||||
// TODO get last block from the database
|
// TODO get last block from the database
|
||||||
//bc.LastBlock = bc.genesisBlock
|
//bc.LastBlock = bc.genesisBlock
|
||||||
|
|
||||||
|
|
@ -175,7 +174,6 @@ func (bm *BlockManager) AccumelateRewards(block *ethutil.Block) error {
|
||||||
|
|
||||||
// TODO Reward each uncle
|
// TODO Reward each uncle
|
||||||
|
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
3
peer.go
3
peer.go
|
|
@ -1,8 +1,8 @@
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/ethereum/ethwire-go"
|
|
||||||
"github.com/ethereum/ethutil-go"
|
"github.com/ethereum/ethutil-go"
|
||||||
|
"github.com/ethereum/ethwire-go"
|
||||||
"log"
|
"log"
|
||||||
"net"
|
"net"
|
||||||
)
|
)
|
||||||
|
|
@ -145,4 +145,3 @@ func (p *Peer) handleVersionAck(msg *ethwire.InOutMsg) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue