block-core / blockcore

Open source .NET Core Bitcoin based blockchain node in C#
https://www.blockcore.net
222 stars 91 forks source link

Return the StakeModifierV2 in block details #187

Open sondreb opened 4 years ago

sondreb commented 4 years ago

I previously implemented returning of the StakeModifierV2 in the custom local block explorer node feature developed for City Chain, which returns the StakeModifierV2. This is useful when updating the checkpoints, as you can call this method to quickly get the values needed.

We currently have this supported in the BlockExplorer feature, code here: https://github.com/block-core/blockcore-features/blob/ab5018e96f347af8c77758e9b531a47e108cd43a/Blockcore.Features.BlockExplorer/Controllers/BlockExplorerController.cs#L154

dangershony commented 4 years ago

Ah brilliant idea, defo useful for checkpoints maybe could be even useful for other cases where full validation is not possible.