Resolve comments in code review

This commit is contained in:
Bret Palsson 2021-11-03 12:04:30 -07:00
parent 8bddc0cddb
commit 551df8feae
4 changed files with 3 additions and 5 deletions

View File

@ -145,7 +145,7 @@ var (
}
NetworkIdFlag = cli.Uint64Flag{
Name: "networkid",
Usage: "Explicitly set network id (integer)(For testnets: use --pulsechain --pulsechain-testnet --ropsten, --rinkeby, --goerli instead)",
Usage: "Explicitly set network id (integer)(For testnets: use --pulsechain, --pulsechain-testnet, --ropsten, --rinkeby, --goerli instead)",
Value: ethconfig.Defaults.NetworkId,
}
MainnetFlag = cli.BoolFlag{

View File

@ -81,10 +81,8 @@ func (p *StateProcessor) Process(block *types.Block, statedb *state.StateDB, cfg
// Iterate over and process the individual transactions
posa, isPoSA := p.engine.(consensus.PoSA)
// Store common transactions
commonTxs := make([]*types.Transaction, 0, len(block.Transactions()))
// Store system transactions
// usually do have two tx, one for validator set contract, another for system reward contract.
systemTxs := make([]*types.Transaction, 0, 2)

View File

@ -61,7 +61,7 @@ var LightClientGPO = gasprice.Config{
IgnorePrice: gasprice.DefaultIgnorePrice,
}
// Defaults contains default settings for use on the Ethereum main net.
// Defaults contains default settings for use on the Pulsechain main net.
var Defaults = Config{
SyncMode: downloader.SnapSync,
Ethash: ethash.Config{

View File

@ -80,7 +80,7 @@ var defaultNodeConfig = &NodeConfig{
BootstrapNodes: PulseChainBootnodes(),
MaxPeers: 25,
EthereumEnabled: true,
EthereumNetworkID: 1,
EthereumNetworkID: 369,
EthereumDatabaseCache: 16,
}