Compare commits
1 Commits
master
...
disable-lo
| Author | SHA1 | Date | |
|---|---|---|---|
|
358a15b3ee
|
@@ -264,7 +264,7 @@ func New(config Config, chain BlockChain) *LegacyPool {
|
||||
}
|
||||
pool.locals = newAccountSet(pool.signer)
|
||||
for _, addr := range config.Locals {
|
||||
log.Info("Setting new local account", "address", addr)
|
||||
// log.Info("Setting new local account", "address", addr)
|
||||
pool.locals.add(addr)
|
||||
}
|
||||
pool.priced = newPricedList(pool.all)
|
||||
@@ -805,7 +805,7 @@ func (pool *LegacyPool) add(tx *types.Transaction, local bool) (replaced bool, e
|
||||
}
|
||||
// Mark local addresses and journal local transactions
|
||||
if local && !pool.locals.contains(from) {
|
||||
log.Info("Setting new local account", "address", from)
|
||||
// log.Info("Setting new local account", "address", from)
|
||||
pool.locals.add(from)
|
||||
pool.priced.Removed(pool.all.RemoteToLocals(pool.locals)) // Migrate the remotes if it's marked as local first time.
|
||||
}
|
||||
|
||||
@@ -1428,12 +1428,16 @@ func SubmitTransaction(ctx context.Context, b Backend, tx *types.Transaction) (c
|
||||
return common.Hash{}, err
|
||||
}
|
||||
|
||||
_ = from
|
||||
|
||||
/**
|
||||
if tx.To() == nil {
|
||||
addr := crypto.CreateAddress(from, tx.Nonce())
|
||||
log.Info("Submitted contract creation", "hash", tx.Hash().Hex(), "from", from, "nonce", tx.Nonce(), "contract", addr.Hex(), "value", tx.Value())
|
||||
} else {
|
||||
log.Info("Submitted transaction", "hash", tx.Hash().Hex(), "from", from, "nonce", tx.Nonce(), "recipient", tx.To(), "value", tx.Value())
|
||||
}
|
||||
**/
|
||||
return tx.Hash(), nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user