Kaynağa Gözat

light: update txpool signer to EIP155 (#14720)

bas-vk 8 yıl önce
ebeveyn
işleme
c259e6874e
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      light/txpool.go

+ 1 - 1
light/txpool.go

@@ -81,7 +81,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),