Example #1
0
        protected override StoredStakeBlock ReadStoredItem(Stream stream, DiskBlockPos pos)
        {
            StoredStakeBlock storedStakeBlock = new StoredStakeBlock(Network, pos);

            storedStakeBlock.ReadWrite(stream, false);

            // set the POS values in to the block header
            storedStakeBlock.Item.Block.Header.PosParameters = storedStakeBlock.Item.Stake;

            return(storedStakeBlock);
        }
Example #2
0
 internal static void StartAtPosition(DiskBlockPos startPosition)
 {
     _Trace.TraceInformation("Start at position " + startPosition.ToString());
 }
Example #3
0
 public StoredStakeBlock(uint magic, StakeBlock stakeBlock, DiskBlockPos blockPosition)
     : base(magic, stakeBlock, blockPosition)
 {
 }
Example #4
0
 public StoredStakeBlock(Network expectedNetwork, DiskBlockPos position)
     : base(expectedNetwork, position)
 {
 }
Example #5
0
 protected override StoredStakeBlock CreateStoredItem(StakeBlock item, DiskBlockPos position)
 {
     return(new StoredStakeBlock(Network.Magic, item, position));
 }