iron-fish / ironfish

A novel cryptocurrency focused on privacy and accessibility.
https://ironfish.network
Mozilla Public License 2.0
962 stars 576 forks source link

Change setAccountHead to take blocks instead of transactions #5004

Closed dguenther closed 1 month ago

dguenther commented 1 month ago

Summary

Updates setAccountHead to take block hashes as well as transaction hashes. This avoids the need to do transaction-to-block lookups and dedupe the block headers when a block includes multiple relevant transactions.

Testing Plan

Documentation

Does this change require any updates to the Iron Fish Docs (ex. the RPC API Reference)? If yes, link a related documentation pull request for the website.

[ ] Yes

Breaking Change

Is this a breaking change? If yes, add notes below on why this is breaking and label it with breaking-change-rpc or breaking-change-sdk.

[ ] Yes