<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[yyxyong的博客]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/yyxyong</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; yyxyong]]></copyright><item><title><![CDATA[extension point]]></title><link>https://blog.csdn.net/yyxyong/article/details/78931493</link><guid>https://blog.csdn.net/yyxyong/article/details/78931493</guid><author>yyxyong</author><pubDate>Fri, 29 Dec 2017 14:44:15 +0800</pubDate><description><![CDATA[BUIP039  Upgrade via extension point
https://github.com/BitcoinUnlimited/BUIP/blob/master/039.mediawiki
概要 
迄今为止，仅有硬分叉和软分叉两种方式来升级比特币网络。两种方式各有缺点，软分叉通过矿工激活，对于普通的节点操作者，没有途径来发出他们的声音，也没有机制来反对该分叉。另一方面，硬分叉需要大]]></description><category></category></item><item><title><![CDATA[extension block]]></title><link>https://blog.csdn.net/yyxyong/article/details/78879789</link><guid>https://blog.csdn.net/yyxyong/article/details/78879789</guid><author>yyxyong</author><pubDate>Sat, 23 Dec 2017 14:28:35 +0800</pubDate><description><![CDATA[extension block
https://github.com/tothemoon-org/extension-blocks/blob/master/spec.md
描述：不需要改变任何现存的共识规则，来增大比特币的交易吞吐量。
动机：比特币网络的吞吐量与它重新定向和拒绝服务限制的共识规则相关。 
比特币的重新定向规则确保出块时间时间大致在10分钟，该规则不可改变。关于其它大大提高交易吞吐量的]]></description><category></category></item><item><title><![CDATA[bitcoin rpc command]]></title><link>https://blog.csdn.net/yyxyong/article/details/78878899</link><guid>https://blog.csdn.net/yyxyong/article/details/78878899</guid><author>yyxyong</author><pubDate>Sat, 23 Dec 2017 11:20:56 +0800</pubDate><description><![CDATA[bitcoin rpc command创建交易
bitcoin-cli createrawtransaction “[{\”txid\”:\”myid\”,\”vout\”:0}]” “{\”address\”:0.01}”
bitcoin-cli createrawtransaction “[{\”txid\”:\”myid\”,\”vout\”:0, \”scriptPubKey\”:\”scr]]></description><category></category></item><item><title><![CDATA[C++ typedef typename 作用]]></title><link>https://blog.csdn.net/yyxyong/article/details/78632340</link><guid>https://blog.csdn.net/yyxyong/article/details/78632340</guid><author>yyxyong</author><pubDate>Sat, 25 Nov 2017 15:52:34 +0800</pubDate><description><![CDATA[C typedef typename 作用vectorsize_type为什么使用typename关键字总结C++ typedef typename 作用*  C++的一些语法让人看着费解，其中就有:
```
typedef typename std::vector<T>::size_type size_type;```
vector::size_type* 明白上述语法，首先要先看清vector:]]></description><category></category></item><item><title><![CDATA[C++构造函数、析构函数与抛出异常]]></title><link>https://blog.csdn.net/yyxyong/article/details/78632174</link><guid>https://blog.csdn.net/yyxyong/article/details/78632174</guid><author>yyxyong</author><pubDate>Sat, 25 Nov 2017 15:30:42 +0800</pubDate><description><![CDATA[请问构造函数后面的throw()含义 ： 
在构造时，可能会抛出异常 
使用时，要注意用try和catch
解释：标准C++中定义构造函数是一个对象构建自己，分配所需资源的地方，一旦构造函数执行完毕，则表明这个对象已经诞生了，有自己的行为和内部的运行状态，之后还有对象的消亡过程（析构函数的执行）。可谁能保证对象的构造过程一定能成功呢？说不定系统当前的某个资源不够，导致对象不能完全构建好自己，又由于C]]></description><category></category></item><item><title><![CDATA[C++之 lower_bound And upper_bound And insert]]></title><link>https://blog.csdn.net/yyxyong/article/details/78201715</link><guid>https://blog.csdn.net/yyxyong/article/details/78201715</guid><author>yyxyong</author><pubDate>Wed, 11 Oct 2017 11:24:50 +0800</pubDate><description><![CDATA[1. 代码#include <set>
#include <iostream>
int main()
{
    std::set<int> c = {1, 2, 3, 4, 5, 6, 7, 8, 9};       auto item = c.lower_bound(4);
    for(; item != c.end(); item++ ){
        std::cout << *it]]></description><category></category></item><item><title><![CDATA[C++ 之 constexpr And shared_ptr]]></title><link>https://blog.csdn.net/yyxyong/article/details/78061064</link><guid>https://blog.csdn.net/yyxyong/article/details/78061064</guid><author>yyxyong</author><pubDate>Fri, 22 Sep 2017 11:24:46 +0800</pubDate><description><![CDATA[简介
constexpr : 指定变量或函数的值可以出现在常量表达式中。
解释
constexpr 标识符声明可以在编译时 评估变量或函数的值。然后可以在只允许编译时的常量表达式的地方 使用这样的变量或函数(只要提供适当的函数参数)。一个constexpr说明符在对象声明时使用，暗示该对象为const。一个constexpr说明符在函数或静态成员变量声明时使用，暗示它们为inline。
一个cons]]></description><category></category></item><item><title><![CDATA[Language Mechanics On stacks And Pointers--golang]]></title><link>https://blog.csdn.net/yyxyong/article/details/78060415</link><guid>https://blog.csdn.net/yyxyong/article/details/78060415</guid><author>yyxyong</author><pubDate>Fri, 22 Sep 2017 10:44:23 +0800</pubDate><description><![CDATA[前言
本节专注于：栈和指针。
介绍
当使用指针不正确时，可能会产生bug或性能问题。特别是当写多线程软件时。所以很多试图从开发者的角度去隐藏指针。然而，如果你想使用go去编程，你没有任何方式可以去避免它。对指针没有很深的理解，你将很难去写出干净，简洁，高效的代码。
框架界限引用
https://www.goinggo.net/2017/05/language-mechanics-on-stacks-]]></description><category></category></item><item><title><![CDATA[C++之 volatile]]></title><link>https://blog.csdn.net/yyxyong/article/details/78048776</link><guid>https://blog.csdn.net/yyxyong/article/details/78048776</guid><author>yyxyong</author><pubDate>Thu, 21 Sep 2017 10:17:45 +0800</pubDate><description><![CDATA[1. 介绍
像const一样，volatile是一个类型修饰符。
volatile修饰的数据,编译器不可对其进行执行期寄存于寄存器的优化。这种特性,是为了满足多线程同步、中断、硬件编程等特殊需要。遇到这个关键字声明的变量，编译器对访问该变量的代码就不再进行优化，从而可以提供对特殊地址的直接访问。
volatile原意是“易变的”，但这种解释简直有点误导人，应该解释为“直接存取原始内存地址”比较合适。]]></description><category></category></item><item><title><![CDATA[C++之 mutable]]></title><link>https://blog.csdn.net/yyxyong/article/details/77939866</link><guid>https://blog.csdn.net/yyxyong/article/details/77939866</guid><author>yyxyong</author><pubDate>Mon, 11 Sep 2017 23:40:40 +0800</pubDate><description><![CDATA[mutable 关键字  
1.     在C++中，mutable是为了突破const的限制而设置的。被mutable修饰的变量，将永远处于可变的状态，即使在一个const函数中，甚至结构体变量或者类对象为const，其mutable成员也可以被修改。struct  ST  
{    
    int a;    
    mutable int b;   
};    
const ST st]]></description><category></category></item><item><title><![CDATA[openssl C语言编码实现rsa加密]]></title><link>https://blog.csdn.net/yyxyong/article/details/77827870</link><guid>https://blog.csdn.net/yyxyong/article/details/77827870</guid><author>yyxyong</author><pubDate>Sun, 03 Sep 2017 22:32:56 +0800</pubDate><description><![CDATA[首先介绍下命令台下openssl工具的简单使用： 
　　1）生成一个密钥： 
　　openssl genrsa -out test.key 1024 
　　这里-out指定生成文件的。需要注意的是这个文件包含了公钥和密钥两部分，也就是说这个文件即可用来加密也可以用来解密。后面的1024是生成密钥的长度。 
　　2）openssl可以将这个文件中的公钥提取出来： 
　　openssl rsa -in]]></description><category></category></item><item><title><![CDATA[Go TCP网络程序编写]]></title><link>https://blog.csdn.net/yyxyong/article/details/76521032</link><guid>https://blog.csdn.net/yyxyong/article/details/76521032</guid><author>yyxyong</author><pubDate>Tue, 01 Aug 2017 12:54:17 +0800</pubDate><description><![CDATA[案例:
client和server程序编写: 
面向长连接的编程 http://files.cnblogs.com/files/yyx1-1/Go_TCP.7z
博客:
自定义TCP的数据包 二进制协议, 将发送的数据包按照二进制的格式进行组包发送, 采用二进制协议的好处在于, 可以进行跨语言 交互; 需要用到encoding/binary package; http://www.jianshu.c]]></description><category></category></item><item><title><![CDATA[Golang gc演进]]></title><link>https://blog.csdn.net/yyxyong/article/details/76515265</link><guid>https://blog.csdn.net/yyxyong/article/details/76515265</guid><author>yyxyong</author><pubDate>Tue, 01 Aug 2017 11:55:37 +0800</pubDate><description><![CDATA[GC
优化GC 的方向:尽量不要大量创建对象, 不要频繁创建对象. 这个道理在所有带gc的编程语言都通用;
提高对象重用和避免不必要的对象创建;
解决Go语言程序稳定性的问题:内存泄漏(Go语言也提供自我管理内存的方式), 使用memprof来定位;
提高程序的运行性能, 使用cpuprof 来定位问题;
Go gc的信息:go的gc是固定每两分钟执行一次，每次执行都是暂停整个程序的;
gc 执行时]]></description><category></category></item><item><title><![CDATA[panic: reflect: reflect.Value.SetUint using value obtained using unexported field（go语言）]]></title><link>https://blog.csdn.net/yyxyong/article/details/76508551</link><guid>https://blog.csdn.net/yyxyong/article/details/76508551</guid><author>yyxyong</author><pubDate>Tue, 01 Aug 2017 10:40:35 +0800</pubDate><description><![CDATA[go语言中在用binary.Read（），把二进制映射为结构体时，如果出现panic: reflect: reflect.Value.SetUint using value obtained using unexported field类似的错误，是要映射的结构体成员没有大写造成的，小写是私有，大写公有的才可以被访问到]]></description><category></category></item><item><title><![CDATA[C++ RALL机制详解]]></title><link>https://blog.csdn.net/yyxyong/article/details/76099721</link><guid>https://blog.csdn.net/yyxyong/article/details/76099721</guid><author>yyxyong</author><pubDate>Tue, 25 Jul 2017 22:29:46 +0800</pubDate><description><![CDATA[RAII 是 resource acquisition is initialization 的缩写，意为“资源获取即初始化”。它是 C++ 之父 Bjarne Stroustrup 提出的设计理念，其核心是把资源和对象的生命周期绑定，对象创建获取资源，对象销毁释放资源。在 RAII 的指导下，C++ 把底层的资源管理问题提升到了对象生命周期管理的更高层次。
那么到底什么是 RALL 机制？使用 C+]]></description><category></category></item><item><title><![CDATA[OpenSSL AES, RSA 算法加密本地文件]]></title><link>https://blog.csdn.net/yyxyong/article/details/76022131</link><guid>https://blog.csdn.net/yyxyong/article/details/76022131</guid><author>yyxyong</author><pubDate>Mon, 24 Jul 2017 16:17:17 +0800</pubDate><description><![CDATA[该工作采用OpenSSL库作为底层加密支持;
采用Qt做界面处理;
使用了 AES与RSA加密算法;
版本支持: Linux 64bit; Linux 32bit;
包含功能: 
生成公私钥对;
对单文件进行加密,加密后的文件存储在与文件相同的目录下;
对单文件进行解密,解密后的文件存储在与文件相同的目录下;
后期功能:  
对指定目录中所有的文件进行单独加密,加密后的文件存储于当前指定目录的加密目]]></description><category></category></item><item><title><![CDATA[Golang Data race 检测]]></title><link>https://blog.csdn.net/yyxyong/article/details/75007178</link><guid>https://blog.csdn.net/yyxyong/article/details/75007178</guid><author>yyxyong</author><pubDate>Wed, 12 Jul 2017 11:08:07 +0800</pubDate><description><![CDATA[
golang中的 go 关键字可以很方便的开启一个协程， 在函数中又非常容易隐藏 go这个关键字； 所以当程序庞大时， 有时会不知道一个变量被几个协程所引用， 是否会引起多个协程竞争。
golang在1.1之后引入了竞争检测机制， 可以使用 go run -race 或者 go build -race来进行静态检测。  
其在内部的实现大概就是： 开启多个协程执行同一个命令， 并且记录下每个变量...]]></description><category></category></item><item><title><![CDATA[GoLang 类型转换和类型断言]]></title><link>https://blog.csdn.net/yyxyong/article/details/74988815</link><guid>https://blog.csdn.net/yyxyong/article/details/74988815</guid><author>yyxyong</author><pubDate>Tue, 11 Jul 2017 16:58:40 +0800</pubDate><description><![CDATA[Go语言中的强制类型转换 与 C语言的区别是： 
char b = 9;  int a = (int)b; _注意：此处括号中为将强制转换的类型_ ;  
var Byte b = 9  var uint a = int(b) _注意：此处括号中为 将要转换的值_ Go 的类型断言和switch判断， 两种方式： 
Comma-ok断言的语法是：value, ok := element.(T)。el]]></description><category></category></item><item><title><![CDATA[以太坊环境搭建]]></title><link>https://blog.csdn.net/yyxyong/article/details/74966118</link><guid>https://blog.csdn.net/yyxyong/article/details/74966118</guid><author>yyxyong</author><pubDate>Tue, 11 Jul 2017 14:30:13 +0800</pubDate><description><![CDATA[Golang环境安装；
go-ethereum 源码安装 
go get -d github.com/ethereum/go-ethereum
go install github.com/ethereum/go-ethereum/cmd/geth]]></description><category></category></item><item><title><![CDATA[以太坊智能合约solidity]]></title><link>https://blog.csdn.net/yyxyong/article/details/74923041</link><guid>https://blog.csdn.net/yyxyong/article/details/74923041</guid><author>yyxyong</author><pubDate>Mon, 10 Jul 2017 14:47:07 +0800</pubDate><description><![CDATA[https://remix.ethereum.org(solidity 在线IDE)
solidity语言中，int/uint 数组类型的定义： 
uint[] array;
int[] array;
数组类型的成员有两个： push 和 length 
push 给数组类型增加一个元素， 同时该数组长度加1；
length 返回当前的数组长度。 
contract Demo{
    uint[]]]></description><category></category></item></channel></rss>