Skip to content

Releases: 0xPolygonHermez/zkevm-synchronizer-l1

v0.5.3

10 Jun 11:33
13869fd
Compare
Choose a tag to compare

v0.5.2

10 Jun 11:06
ab95ac0
Compare
Choose a tag to compare

v0.4.2

04 Jun 14:49
aeb7cc2
Compare
Choose a tag to compare

fix #58

v0.4.1

03 Jun 10:58
0105b0b
Compare
Choose a tag to compare

Fix bugs:

  • Panic if first block range have no rollup events (#54)
  • Starting from scratch doesnt request for genesisBlock rollup data (#55)

v0.4.0

27 May 13:25
5eb6f4a
Compare
Choose a tag to compare

Changelog

  • Detects reorg and define a callback to report to the client (#51, #49, #29, #28, #26, #21)

Configuration changes

[Synchronizer]
	(...)
	SyncBlockProtection = "latest"
	SyncBlockProtectionOffset = -5

v0.3.3

22 May 10:51
57e6c49
Compare
Choose a tag to compare
  • Add support to query blocks #49

Interfaces changes

Add new function to query blocks

type L1Block struct {
	BlockNumber uint64
	BlockHash   common.Hash
	ParentHash  common.Hash
	ReceivedAt  time.Time
	Checked     bool // The block is safe (have past the safe point, e.g. Finalized in L1)
	HasEvents   bool // This block have events from the rollup
	SyncVersion string
}

type SynchronizerBlockQuerier interface {
	GetLastL1Block(ctx context.Context) (*L1Block, error)
	GetL1BlockByNumber(ctx context.Context, blockNumber uint64) (*L1Block, error)
}

v0.3.2

08 May 07:51
2bf6dbf
Compare
Choose a tag to compare

Feature

  • Add batchl2data synchronization #40:
GetVirtualBatchByBatchNumber(ctx context.Context, batchNumber uint64) (*VirtualBatch, error)
GetLastestVirtualBatchNumber(ctx context.Context) (uint64, error)

Fixes

  • Fix mod tidy issue #41

Internal

  • Partial reorg integration #29, #28 , #27 (not yet functional)
  • Database: Add new fields to block table:
    • checked: part of reorgs, it marks if the block have been created before finalized block and is not going to be reorged
    • has_events: it marks if this block have rollup events
  • Database: Add new fields to sequenced_batchestable:
    • fork_id: forkid of this sequence
    • received_at: when it was received by the library
    • source: a reference of the origin of this, InitialBatch or Sequence
  • Database: Add new tables: sync.virtual_batch and sync.reorg_log

v0.2.7

30 Apr 10:40
c917594
Compare
Choose a tag to compare

Fix #37: Add support to initial Sequence

v0.2.6

15 Apr 10:10
86bdaaa
Compare
Choose a tag to compare

Init logger

v0.2.5

10 Apr 09:39
e4703b2
Compare
Choose a tag to compare

Closes #10 and #23