Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(horizon_sync): check max number of kernels/utxos from peer (tari-…
…project#5703) Description --- Add a upper limit check on the stream processing loop for both kernels and UTXOs. Motivation and Context --- The peer responses of the `sync_kenels` and `sync_utxos` RPC calls return streams. We don't have a check to avoid a malicious peer for repeatedly send data in the stream to keep the client node blocked. How Has This Been Tested? --- Tests pass What process can a PR reviewer use to test or verify this change? --- Code review Breaking Changes --- - [x] None - [ ] Requires data directory on base node to be deleted - [ ] Requires hard fork - [ ] Other - Please specify Co-authored-by: SW van Heerden <swvheerden@gmail.com>
- Loading branch information