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

tari-project / tari / 5797368271
62%

Build:
DEFAULT BRANCH: development
Ran 08 Aug 2023 01:46PM UTC
Jobs 1
Files 694
Run time 18s
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

08 Aug 2023 01:09PM UTC coverage: 75.913% (-0.01%) from 75.924%
5797368271

push

github

web-flow
fix: miner delay attack (#5582)

Description
---
Stops the node blocking until it has a full block

Audit Finding Number
---
TARI-0001, TARI-0002

Motivation and Context
---
Its possible for a malicious node to block access to the full block by
using first the mempool to say it does not have the missing
transactions, then when asked for the full block to only then provide
the full block. But these requests can be made slow to delay the node
constructing the new block by almost 2 mins. This is the block time.

By only accepting 1 block request at a time, a malicious node can lock
down the local node for that entire 2 mins knowing they wont accept any
other blocks. This changes it so that nodes can still process new
requests. The first complete block will be served first.


Also changes the display of block information to ensure block sorted is
correctly used.

---------

Co-authored-by: Stan Bondi <sdbondi@users.noreply.github.com>

33 of 33 new or added lines in 1 file covered. (100.0%)

70351 of 92673 relevant lines covered (75.91%)

203404.21 hits per line

Jobs
ID Job ID Ran Files Coverage
1 5797368271.1 08 Aug 2023 01:46PM UTC 0
75.91
GitHub Action Run
Source Files on build 5797368271
Detailed source file information is not available for this build.
  • Back to Repo
  • Github Actions Build #5797368271
  • bece2d0b on github
  • Prev Build on development (#5782488054)
  • Next Build on development (#5798622361)
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