mirror of
https://gitlab.com/pulsechaincom/go-pulse.git
synced 2025-01-03 09:17:38 +00:00
Resolve comments in code review
This commit is contained in:
parent
8bddc0cddb
commit
551df8feae
@ -145,7 +145,7 @@ var (
|
|||||||
}
|
}
|
||||||
NetworkIdFlag = cli.Uint64Flag{
|
NetworkIdFlag = cli.Uint64Flag{
|
||||||
Name: "networkid",
|
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,
|
Value: ethconfig.Defaults.NetworkId,
|
||||||
}
|
}
|
||||||
MainnetFlag = cli.BoolFlag{
|
MainnetFlag = cli.BoolFlag{
|
||||||
|
@ -81,10 +81,8 @@ func (p *StateProcessor) Process(block *types.Block, statedb *state.StateDB, cfg
|
|||||||
// Iterate over and process the individual transactions
|
// Iterate over and process the individual transactions
|
||||||
posa, isPoSA := p.engine.(consensus.PoSA)
|
posa, isPoSA := p.engine.(consensus.PoSA)
|
||||||
|
|
||||||
// Store common transactions
|
|
||||||
commonTxs := make([]*types.Transaction, 0, len(block.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.
|
// usually do have two tx, one for validator set contract, another for system reward contract.
|
||||||
systemTxs := make([]*types.Transaction, 0, 2)
|
systemTxs := make([]*types.Transaction, 0, 2)
|
||||||
|
|
||||||
|
@ -61,7 +61,7 @@ var LightClientGPO = gasprice.Config{
|
|||||||
IgnorePrice: gasprice.DefaultIgnorePrice,
|
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{
|
var Defaults = Config{
|
||||||
SyncMode: downloader.SnapSync,
|
SyncMode: downloader.SnapSync,
|
||||||
Ethash: ethash.Config{
|
Ethash: ethash.Config{
|
||||||
|
@ -80,7 +80,7 @@ var defaultNodeConfig = &NodeConfig{
|
|||||||
BootstrapNodes: PulseChainBootnodes(),
|
BootstrapNodes: PulseChainBootnodes(),
|
||||||
MaxPeers: 25,
|
MaxPeers: 25,
|
||||||
EthereumEnabled: true,
|
EthereumEnabled: true,
|
||||||
EthereumNetworkID: 1,
|
EthereumNetworkID: 369,
|
||||||
EthereumDatabaseCache: 16,
|
EthereumDatabaseCache: 16,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user