Skip to content

blockfetcher: add headerSizeMap to GetRange headers accordingly

Codecov / codecov/patch failed Feb 6, 2025 in 1s

41.21% of diff hit (target 83.02%)

View this Pull Request on Codecov

41.21% of diff hit (target 83.02%)

Annotations

Check warning on line 88 in pkg/core/block/header.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/core/block/header.go#L87-L88

Added lines #L87 - L88 were not covered by tests

Check warning on line 256 in pkg/core/block/header.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/core/block/header.go#L255-L256

Added lines #L255 - L256 were not covered by tests

Check warning on line 304 in pkg/core/blockchain.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/core/blockchain.go#L303-L304

Added lines #L303 - L304 were not covered by tests

Check warning on line 326 in pkg/core/blockchain.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/core/blockchain.go#L319-L326

Added lines #L319 - L326 were not covered by tests

Check warning on line 193 in pkg/core/statesync/module.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/core/statesync/module.go#L190-L193

Added lines #L190 - L193 were not covered by tests

Check warning on line 200 in pkg/core/statesync/module.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/core/statesync/module.go#L199-L200

Added lines #L199 - L200 were not covered by tests

Check warning on line 540 in pkg/core/statesync/module.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/core/statesync/module.go#L536-L540

Added lines #L536 - L540 were not covered by tests

Check warning on line 575 in pkg/core/statesync/module.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/core/statesync/module.go#L574-L575

Added lines #L574 - L575 were not covered by tests

Check warning on line 100 in pkg/network/bqueue/queue.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/network/bqueue/queue.go#L100

Added line #L100 was not covered by tests

Check warning on line 113 in pkg/network/bqueue/queue.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/network/bqueue/queue.go#L111-L113

Added lines #L111 - L113 were not covered by tests

Check warning on line 116 in pkg/network/bqueue/queue.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/network/bqueue/queue.go#L115-L116

Added lines #L115 - L116 were not covered by tests

Check warning on line 162 in pkg/network/bqueue/queue.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/network/bqueue/queue.go#L161-L162

Added lines #L161 - L162 were not covered by tests

Check warning on line 22 in pkg/network/bqueue_adapters.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/network/bqueue_adapters.go#L21-L22

Added lines #L21 - L22 were not covered by tests

Check warning on line 27 in pkg/network/bqueue_adapters.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/network/bqueue_adapters.go#L26-L27

Added lines #L26 - L27 were not covered by tests

Check warning on line 43 in pkg/network/bqueue_adapters.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/network/bqueue_adapters.go#L42-L43

Added lines #L42 - L43 were not covered by tests

Check warning on line 48 in pkg/network/bqueue_adapters.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/network/bqueue_adapters.go#L47-L48

Added lines #L47 - L48 were not covered by tests

Check warning on line 69 in pkg/network/bqueue_adapters.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/network/bqueue_adapters.go#L68-L69

Added lines #L68 - L69 were not covered by tests

Check warning on line 249 in pkg/network/server.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/network/server.go#L247-L249

Added lines #L247 - L249 were not covered by tests

Check warning on line 252 in pkg/network/server.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/network/server.go#L251-L252

Added lines #L251 - L252 were not covered by tests

Check warning on line 257 in pkg/network/server.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/network/server.go#L255-L257

Added lines #L255 - L257 were not covered by tests

Check warning on line 260 in pkg/network/server.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/network/server.go#L259-L260

Added lines #L259 - L260 were not covered by tests

Check warning on line 263 in pkg/network/server.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/network/server.go#L262-L263

Added lines #L262 - L263 were not covered by tests

Check warning on line 344 in pkg/network/server.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/network/server.go#L344

Added line #L344 was not covered by tests

Check warning on line 403 in pkg/network/server.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/network/server.go#L394-L403

Added lines #L394 - L403 were not covered by tests

Check warning on line 411 in pkg/network/server.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/network/server.go#L406-L411

Added lines #L406 - L411 were not covered by tests