public long BlocksToNextPayout(PoolConfig c)
long now = DateTimeOffset.UtcNow.ToUnixTimeSeconds();
long rel = now / c.interval * c.interval + c.offset;
next = rel + c.interval - now;
PoolConfig c = new PoolConfig();
Console.WriteLine($"blocks to go: {BlocksToNextPayout(c)}");
public long interval = 86400;
public long offset = 82800;
public static void Main()
Example ex = new Example();