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

tari-project / tari / 6702505156
61%

Build:
DEFAULT BRANCH: development
Ran 31 Oct 2023 09:09AM UTC
Jobs 1
Files 722
Run time 44s
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

31 Oct 2023 05:33AM UTC coverage: 75.787% (+0.003%) from 75.784%
6702505156

push

github

web-flow
feat: make prc errors ban-able for sync (#5884)

Description
---
Made RPC errors ban-able during header-sync and horizon-sync ban-able
with a short ban duration.

Closes #5874

Motivation and Context
---
During sync, we establish a client-server connection and then execute
RPC methods from the client to the server, which we know should succeed,
so that any RPC errors afterwards are a banable offence. Something else
to consider is that sync only acts if better peer metadata is received
from a peer, translating to malicious behaviour should a peer not want
to play the protocol afterwards.

How Has This Been Tested?
---
Integration-level unit tests in `base_layer\core\tests\tests`:
- `block_sync.rs`
- `header_sync.rs`
- `horizon_sync.rs` (still in progress)

What process can a PR reviewer use to test or verify this change?
---
- Code walk-through
- Review unit tests ^^

<!-- Checklist -->
<!-- 1. Is the title of your PR in the form that would make nice release
notes? The title, excluding the conventional commit
tag, will be included exactly as is in the CHANGELOG, so please think
about it carefully. -->


Breaking Changes
---

- [x] None
- [ ] Requires data directory on base node to be deleted
- [ ] Requires hard fork
- [ ] Other - Please specify

<!-- Does this include a breaking change? If so, include this line as a
footer -->
<!-- BREAKING CHANGE: Description what the user should do, e.g. delete a
database, resync the chain -->

6 of 6 new or added lines in 2 files covered. (100.0%)

74166 of 97861 relevant lines covered (75.79%)

203715.59 hits per line

Jobs
ID Job ID Ran Files Coverage
1 6702505156.1 31 Oct 2023 09:09AM UTC 0
75.79
GitHub Action Run
Source Files on build 6702505156
Detailed source file information is not available for this build.
  • Back to Repo
  • Github Actions Build #6702505156
  • 4ca664e5 on github
  • Prev Build on development (#6693690745)
  • Next Build on development (#6716547014)
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

© 2026 Coveralls, Inc