コード例 #1
0
        public static Checkpoint FromNative(Knuth.Native.Config.Checkpoint native)
        {
            var res = new Checkpoint();

            res.Height = native.height;
            res.Hash   = native.hash.hash;
            return(res);
        }
コード例 #2
0
        public Knuth.Native.Config.Checkpoint ToNative()
        {
            var native = new Knuth.Native.Config.Checkpoint();

            native.height    = this.Height;
            native.hash.hash = this.Hash;
            return(native);
        }