Skip to content

RPC: Range Swap

Christopher Schinnerl requested to merge range-swap into master

MERGE REQUEST

Overview

This MR implements the Range Swap RPC.

Changes to Work Flow

The Range-Swap RPC is similar to the regular swap RPC with the exception that it swaps a whole range of sectors. The request includes the lower and upper offset plus the length of the ranges.

Testing Changes

TestCalculateProofRanges and TestModifyLeafHashes were extended TestSwapRanges was added

Documentation Changes

N/A

Modules and Packages Impacted

modules, modules/host, modules/renter/proto, siatest/renterhost

Example for Visual changes (ie Screenshot)

N/A

Issues Closed

N/A

Checklist

Review and complete the checklist to ensure that the MR is complete before assigned to an approver.

  • Pipeline Passing (this is for NDFs where tests were run in a loop)
  • All new methods, or updating methods have clear docstrings
  • Testing added or updated for new methods
  • API documentation updated for API updates
  • Module README.md updated for changes to work flow
  • Issue added to Sia-UI repo for new supporting features
Edited by Christopher Schinnerl

Merge request reports