light: update txpool signer to EIP155

This commit is contained in:
Bas van Kervel 2017-06-28 10:44:17 +02:00
parent 5421a08d2f
commit 18b19098c7
No known key found for this signature in database
GPG key ID: BFB23B252EF5812B

View file

@ -80,7 +80,7 @@ type TxRelayBackend interface {
func NewTxPool(config *params.ChainConfig, eventMux *event.TypeMux, chain *LightChain, relay TxRelayBackend) *TxPool {
pool := &TxPool{
config: config,
signer: types.HomesteadSigner{},
signer: types.NewEIP155Signer(config.ChainId),
nonce: make(map[common.Address]uint64),
pending: make(map[common.Hash]*types.Transaction),
mined: make(map[common.Hash][]*types.Transaction),