|
| 1 | +// Copyright (C) 2019, Ava Labs, Inc. All rights reserved. |
| 2 | +// See the file LICENSE for licensing terms. |
| 3 | + |
| 4 | +package cchain |
| 5 | + |
| 6 | +import ( |
| 7 | + "context" |
| 8 | + |
| 9 | + "github.com/ava-labs/avalanchego/database" |
| 10 | + "github.com/ava-labs/avalanchego/ids" |
| 11 | + "github.com/ava-labs/avalanchego/snow/engine/snowman/block" |
| 12 | +) |
| 13 | + |
| 14 | +// TODO(#5513): Implement C-Chain state sync. |
| 15 | +type syncer struct{} |
| 16 | + |
| 17 | +func (*syncer) StateSyncEnabled(context.Context) (bool, error) { |
| 18 | + return false, nil |
| 19 | +} |
| 20 | + |
| 21 | +func (*syncer) GetOngoingSyncStateSummary(context.Context) (stateSummary, error) { |
| 22 | + return stateSummary{}, database.ErrNotFound |
| 23 | +} |
| 24 | + |
| 25 | +func (*syncer) GetLastStateSummary(context.Context) (stateSummary, error) { |
| 26 | + return stateSummary{}, database.ErrNotFound |
| 27 | +} |
| 28 | + |
| 29 | +func (*syncer) GetStateSummary(context.Context, uint64) (stateSummary, error) { |
| 30 | + return stateSummary{}, database.ErrNotFound |
| 31 | +} |
| 32 | + |
| 33 | +func (*syncer) ParseStateSummary(context.Context, []byte) (stateSummary, error) { |
| 34 | + return stateSummary{}, block.ErrStateSyncableVMNotImplemented |
| 35 | +} |
| 36 | + |
| 37 | +func (*syncer) AcceptSummary(context.Context, stateSummary) (block.StateSyncMode, error) { |
| 38 | + return block.StateSyncSkipped, block.ErrStateSyncableVMNotImplemented |
| 39 | +} |
| 40 | + |
| 41 | +type stateSummary struct{} |
| 42 | + |
| 43 | +func (stateSummary) ID() ids.ID { |
| 44 | + panic("unimplemented") |
| 45 | +} |
| 46 | + |
| 47 | +func (stateSummary) Bytes() []byte { |
| 48 | + panic("unimplemented") |
| 49 | +} |
| 50 | + |
| 51 | +func (stateSummary) Height() uint64 { |
| 52 | + panic("unimplemented") |
| 53 | +} |
0 commit comments