public static new MinedBlockInfoResponse FromMinedBlockInfo(MinedBlockInfo mbi)
        {
            var obj = JsonConvert.DeserializeObject <MinedBlockInfoResponse>(JsonConvert.SerializeObject(mbi));

            obj.BlockHash = mbi.BlockHash;

            return(obj);
        }
Beispiel #2
0
 public static MiningBlockInfo FromMinedBlockInfo(MinedBlockInfo mbi)
 {
     return(JsonConvert.DeserializeObject <MiningBlockInfo>(JsonConvert.SerializeObject(mbi)));
 }