• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

neo-project / neo / 12489240083
79%

Build:
DEFAULT BRANCH: master
Ran 25 Dec 2024 04:15AM UTC
Jobs 1
Files 555
Run time 2min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

25 Dec 2024 04:09AM UTC coverage: 55.548% (-0.02%) from 55.569%
12489240083

push

github

web-flow
Extensible capabilities and ArchivalNode (#3639)

* Capabilities: rephrase FullNode

FullNode is used by all proper nodes currently whether they drop old chain
data or not. It'd be more correct to define it as "having complete state"
rather than "having all blocks" since the latter is what ArchivalNode will
provide. This is also relevant wrt how this capability is used, see RemoteNode
OnRelay() and OnSend(). Refs #2346.

Signed-off-by: Roman Khimov <roman@nspcc.ru>

* Capabilities: reserve 0xf0-0xff region for private experiments

Similar to TransactionAttributeTypes (#1904), we should have some reserved
values.

Signed-off-by: Roman Khimov <roman@nspcc.ru>

* Capabilities: make them really extensible

The way capabilities are currently defined makes them very hard to extend
since old nodes will treat unknown types as invalid ones failing Version
decoding completely. To be able to ignore these types we should also have
more uniform encoding for unknown/new types.

Signed-off-by: Roman Khimov <roman@nspcc.ru>

* Capabilities: introduce ArchivalNode

This will be used to differente full history nodes from state only. Currently
it's just a definition, we can not use it safely on current networks because
nodes will refuse this Version, so actual code using the attribute will be
added in newer versions.

Signed-off-by: Roman Khimov <roman@nspcc.ru>

---------

Signed-off-by: Roman Khimov <roman@nspcc.ru>
Co-authored-by: Shargon <shargon@gmail.com>

5952 of 9212 branches covered (64.61%)

Branch coverage included in aggregate %.

22 of 61 new or added lines in 7 files covered. (36.07%)

1 existing line in 1 file now uncovered.

22086 of 41263 relevant lines covered (53.52%)

83983.86 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
2
75.0
src/Neo/Network/P2P/Capabilities/UnknownCapability.cs
7
0.0
tests/Neo.UnitTests/Network/P2P/Capabilities/UT_UnknownCapability.cs
8
0.0
0.0% tests/Neo.UnitTests/Network/P2P/Payloads/UT_VersionPayload.cs
22
0.0
tests/Neo.UnitTests/Network/P2P/Capabilities/UT_ArchivalNodeCapability.cs

Uncovered Existing Lines

Lines Coverage ∆ File
1
0.0
0.0% tests/Neo.UnitTests/Network/P2P/Payloads/UT_VersionPayload.cs
Jobs
ID Job ID Ran Files Coverage
1 12489240083.1 25 Dec 2024 04:15AM UTC 2918
22.63
GitHub Action Run
Source Files on build 12489240083
  • Tree
  • List 555
  • Changed 320
  • Source Changed 4
  • Coverage Changed 319
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #12489240083
  • 2c521a04 on github
  • Prev Build on master (#12464615843)
  • Next Build on master (#12514201180)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc