Rename to `BlockTimeSeconds` to `EpochBlockTime`.
MODIFY
WalletWasabi/Backend/Models/FilterModel.cs
WalletWasabi/Backend/Models/FilterModel.cs
@@ -60,7 +60,7 @@ public class FilterModel
builder.Append(':');
builder.Append(Header.PrevHash);
builder.Append(':');
- builder.Append(Header.BlockTimeSeconds);
+ builder.Append(Header.EpochBlockTime);
return builder.ToString();
}

MODIFY
WalletWasabi/Blockchain/BlockFilters/StartingFilters.cs
WalletWasabi/Blockchain/BlockFilters/StartingFilters.cs
@@ -12,16 +12,16 @@ public static class StartingFilters
var startingHeader = SmartHeader.GetStartingHeader(network);
if (network == Network.Main)
{
- return FilterModel.FromLine($"{startingHeader.Height}:{startingHeader.BlockHash}:02832810ec08a0:{startingHeader.PrevHash}:{startingHeader.BlockTimeSeconds}");
+ return FilterModel.FromLine($"{startingHeader.Height}:{startingHeader.BlockHash}:02832810ec08a0:{startingHeader.PrevHash}:{startingHeader.EpochBlockTime}");
}
else if (network == Network.TestNet)
{
- return FilterModel.FromLine($"{startingHeader.Height}:{startingHeader.BlockHash}:00000000000f0d5edcaeba823db17f366be49a80d91d15b77747c2e017b8c20a:{startingHeader.PrevHash}:{startingHeader.BlockTimeSeconds}");
+ return FilterModel.FromLine($"{startingHeader.Height}:{startingHeader.BlockHash}:00000000000f0d5edcaeba823db17f366be49a80d91d15b77747c2e017b8c20a:{startingHeader.PrevHash}:{startingHeader.EpochBlockTime}");
}
else if (network == Network.RegTest)
{
GolombRiceFilter filter = IndexBuilderService.CreateDummyEmptyFilter(startingHeader.BlockHash);
- return FilterModel.FromLine($"{startingHeader.Height}:{startingHeader.BlockHash}:{filter}:{startingHeader.PrevHash}:{startingHeader.BlockTimeSeconds}");
+ return FilterModel.FromLine($"{startingHeader.Height}:{startingHeader.BlockHash}:{filter}:{startingHeader.PrevHash}:{startingHeader.EpochBlockTime}");
}
else
{

MODIFY
WalletWasabi/Blockchain/Blocks/SmartHeader.cs
WalletWasabi/Blockchain/Blocks/SmartHeader.cs
@@ -11,7 +11,7 @@ public class SmartHeader
{
}
- public SmartHeader(uint256 blockHash, uint256 prevHash, uint height, long blockTimeSeconds)
+ public SmartHeader(uint256 blockHash, uint256 prevHash, uint height, long epochBlockTime)
{
BlockHash = Guard.NotNull(nameof(blockHash), blockHash);
PrevHash = Guard.NotNull(nameof(prevHash), prevHash);
@@ -21,7 +21,7 @@ public class SmartHeader
}
Height = height;
- BlockTimeSeconds = blockTimeSeconds;
+ EpochBlockTime = epochBlockTime;
}
public uint256 BlockHash { get; }
@@ -29,9 +29,9 @@ public class SmartHeader
public uint Height { get; }
/// <summary>Timestamp in seconds.</summary>
- public long BlockTimeSeconds { get; }
+ public long EpochBlockTime { get; }
- public DateTimeOffset BlockTime => DateTimeOffset.FromUnixTimeSeconds(BlockTimeSeconds);
+ public DateTimeOffset BlockTime => DateTimeOffset.FromUnixTimeSeconds(EpochBlockTime);
#region SpecialHeaders

Rename to `BlockTimeSeconds` to `EpochBlockTime`.