diff --git a/cmd/gossamer/README.md b/cmd/gossamer/README.md index 272fb7c7da..e27e878603 100644 --- a/cmd/gossamer/README.md +++ b/cmd/gossamer/README.md @@ -14,7 +14,6 @@ cd gossamer ### Compile To put the binary in ./bin, run: - ```bash make build ``` @@ -63,7 +62,7 @@ The node configuration can be modified in the `config.toml` file. ### Start the node ```bash -gossamer --basepath /tmp/gossamer --key alice +gossamer --basepath /tmp/gossamer --key alice ``` **Note: The `init` command is optional. If the node is not initialised, it will be initialised with the default configuration.** @@ -109,14 +108,12 @@ This subcommand provides capabilities that are similar to [Parity's Subkey utility](https://docs.substrate.io/v3/tools/subkey). The account command supports following arguments: - - `generate` - generates a new key pair; specify `--scheme ed25519`, `--scheme secp256k1`, or `--scheme sr25519` (default) - `list` - lists the keys in the Gossamer keystore - `import` - imports a key from a keystore file - `import-raw` - imports a raw key from a keystore file Supported flags: - - `keystore-path` - path to the Gossamer keystore - `keystore-file` - path to the keystore file - `chain` - path to the human-readable chain-spec file @@ -124,7 +121,6 @@ Supported flags: - `--password` - allows the user to provide a password to either encrypt a generated key or unlock the Gossamer keystore Examples: - - `gossamer account generate --scheme ed25519` - generates an `ed25519` key pair - `gossamer account list` - lists the keys in the Gossamer keystore - `gossamer account import --keystore-file keystore.json` - imports a key from a keystore file @@ -149,7 +145,6 @@ represent the Gossamer default configuration. - `--output-path` - path to the file where the compiled chain-spec should be written Examples: - - `gossamer build-spec --chain chain-spec.json --output-path compiled-chain-spec.json` - compiles a human-readable chain-spec into a format that Gossamer can consume - `gossamer build-spec --chain chain-spec.json --raw --output-path compiled-chain-spec.json` - compiles a human-readable @@ -171,7 +166,6 @@ of a JSON file. The input for this subcommand can be retrieved from - `--chain` - path to the human-readable chain-spec file Examples: - - `gossamer import-state --first-slot 1 --header header.json --state state.json --chain chain-spec.json` - seeds Gossamer storage with key-value pairs from a JSON file @@ -191,7 +185,6 @@ What follows is a list that describes the services and capabilities that inform #### State -// TODO: update the `State` description to pebble db This service is a wrapper around an instance of [`chaindb`](https://github.com/ChainSafe/chaindb), a key-value database that is built on top of [BadgerDB](https://github.com/dgraph-io/badger) from [Dgraph](https://dgraph.io/). The state service provides storage capabilities for the other Gossamer services - each service is assigned a prefix that is added @@ -278,4 +271,4 @@ capabilities are defined in the [dot/telemetry](../../dot/telemetry) package and The default listening address for Prometheus metrics is `localhost:9876`, and Gossamer allows the user to configure this parameter with the `--metrics-address` command-line parameter. The Gossamer telemetry server publishes telemetry data that is compatible with [Polkadot Telemetry](https://github.com/paritytech/substrate-telemetry) and -[its helpful UI](https://telemetry.polkadot.io/). +[its helpful UI](https://telemetry.polkadot.io/). \ No newline at end of file diff --git a/dot/core/service.go b/dot/core/service.go index d528e8aa22..4d114072c5 100644 --- a/dot/core/service.go +++ b/dot/core/service.go @@ -9,7 +9,6 @@ import ( "errors" "fmt" "sync" - "time" "github.com/ChainSafe/gossamer/dot/network" "github.com/ChainSafe/gossamer/dot/types" @@ -101,26 +100,6 @@ func NewService(cfg *Config) (*Service, error) { // Start starts the core service func (s *Service) Start() error { go s.handleBlocksAsync() - - go func() { - time.Sleep(30 * time.Second) - header, err := s.blockState.BestBlockHeader() - if err != nil { - panic(err) - } - - ba := &network.BlockAnnounceMessage{ - ParentHash: header.ParentHash, - Number: header.Number, - StateRoot: header.StateRoot, - ExtrinsicsRoot: header.ExtrinsicsRoot, - Digest: header.Digest, - BestBlock: true, - } - - s.net.GossipMessage(ba) - }() - return nil }