The Syncer package provides support for syncing blocks from any Mesh Data API implementation. If you want to see an example of how to use this package, take a look at mesh-cli.
- Automatic handling of block re-orgs
- Multi-threaded block fetching (using the
fetcher
package) - Implementable
Handler
to define your own block processing logic (ex: store processed blocks to a db or print our balance changes)
go get github.com/coinbase/mesh-sdk-go/syncer
- Sync multiple shards in a sharded blockchain