Added change roundtime ability for the initiate message (#49)

This commit is contained in:
Chalith Desaman
2021-08-04 09:31:04 +05:30
committed by GitHub
parent f266e8b3fc
commit 7a34defd0e
4 changed files with 12 additions and 2 deletions

View File

@@ -281,6 +281,9 @@ namespace msg::json
if (contract.contains(msg::FLD_EXECUTE))
msg.config.contract.execute = contract[msg::FLD_EXECUTE].as<bool>();
if (contract.contains(msg::FLD_ROUNDTIME))
msg.config.contract.roundtime = contract[msg::FLD_ROUNDTIME].as<uint32_t>();
if (contract.contains(msg::FLD_LOG))
{
const jsoncons::json &log = contract[msg::FLD_LOG];