Skip to content
This repository has been archived by the owner on Aug 2, 2021. It is now read-only.

Global store #1174

Closed
wants to merge 6 commits into from
Closed

Global store #1174

wants to merge 6 commits into from

Conversation

janos
Copy link
Member

@janos janos commented Jan 30, 2019

This PR adds a new binary global-store which only stores data from swarm nodes that connect to it by RPC. In the future, global store should provide interface to query stored data for chunk explorer, or to implement chunk explorer directly.

This PR also adds a new swarm configuration option to specify endpoint for global store api.

@janos janos self-assigned this Jan 30, 2019
// Returned cleanup function should be called only if err is nil.
func newServer(ctx *cli.Context) (server *rpc.Server, cleanup func(), err error) {
log.PrintOrigins(true)
log.Root().SetHandler(log.LvlFilterHandler(log.Lvl(ctx.Int("verbosity")), log.StreamHandler(os.Stdout, log.TerminalFormat(true))))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please remove the colouring (last param that is currently true) - it fucks up logs on ES/Kibana.

}
time.Sleep(10 * time.Millisecond)
}
if err != nil {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks wrong, isn't err shadowed in the for loop above?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ups, I missed that. Fixed. Thanks.

@nonsense
Copy link
Contributor

nonsense commented Feb 5, 2019

After merging this, we should update swarm-private helm chart to support global store.

@janos
Copy link
Member Author

janos commented Feb 7, 2019

Submitted upstream ethereum/go-ethereum#19014.

@janos janos closed this Feb 7, 2019
@acud acud deleted the global-store branch February 11, 2019 03:48
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants