Closed eomti-wm closed 3 months ago
If we attach a node to the mainnet now and look it up, it comes out as follows.
...
{
blockReward: 30517578125000,
endBlock: 1000285370,
halvingTimes: 15,
startBlock: 937170171
}, {
blockReward: 0,
endBlock: 1000000000,
halvingTimes: 16,
startBlock: 1000285371
}
But shouldn't it be like this?
...
{
blockReward: 30517578125000,
endBlock: 999999999,
halvingTimes: 15,
startBlock: 937170171
}, {
blockReward: 0,
endBlock: 0, // ? we must decide the value for infinity block
halvingTimes: 0, // ??
startBlock: 1000000000
}
Fixes #77 The implemented API is as follows.
wemix
wemix_briocheConfig
wemix_halvingSchedule
wemix_getBriocheBlockReward
To expose the Brioche API via the Websocket/HTTP RPC interface, need to add the
--http(ws).api "wemix"
flag or append"wemix"
toHttp(Ws)Modules
in thenode.config
.Closes #77