My ppc clinet become full node

I used to start minting with 0.4 client. Several days ago, I installed the latest peerunity build, which is great. And I found something new below.

It shows 22 active connections to the ppc network.
I assume that my client has become a full node, right?

I found that earlier with my bitcoin core 0.9.2 client, which also shows the traffic inbound and outbound.

Yep if you have more than 8 connections it’s a full node. If you have not configured port forwarding on your router, your router probably does upnp. I don’t know the details of upnp, but in short your router gets informed by your peercoin client that it listens on port 9901, and automatically starts forwarding that port from outside to your peercoin client.

A couple of months ago, I asked a programmer about my bitcoin core client turning full node:
link here.

As per his finding,

这个问题引起我的兴趣,我查阅代码和比特币协议后有了更清晰的认识如下: 1. 当你接入比特币网络时,你会向对端发送一个协议version,这个version里带了一个字段 8 services uint64_tbitfield of features to be enabled for this connection 复制代码

当你的客户端如果有listen的情况时,这个service是true

当对端收到你的version消息,他会解析这个值,并!
if (pfrom->fInbound && addrMe.IsRoutable())
{
pfrom->addrLocal = addrMe;
SeenLocal(addrMe);
}
复制代码

检查如果是可路由的,如你的在外网!则加入他的本地路由连接,并且打分,每次+1分
/** vote for a local address */
bool SeenLocal(const CService& addr)
{
{
LOCK(cs_mapLocalHost);
if (mapLocalHost.count(addr) == 0)
return false;
mapLocalHost[addr].nScore++;
}

AdvertizeLocal();

return true;

}
复制代码

所以,当这个节点每次尝试连接你的节点时,可以连上的话,你的节点分值就会+1分,

当对方节点尝试连接bitcoin网络时,选择原则有2个:
1。可接入行优先
顺序从后到前为
enum Reachability {
REACH_UNREACHABLE,
REACH_DEFAULT,
REACH_TEREDO,
REACH_IPV6_WEAK,
REACH_IPV4,
REACH_IPV6_STRONG,
REACH_PRIVATE
};
复制代码

  1. 分数最高的节点优先。

所以,我的结论是:即使你的环境没有变化,但绝不是因为版本引起,而是因为你的bitcoin客户端在5个连接你的节点中:接入能力和分值综合处于8个节点之内,所以你现在成了节点。


Basically, the conclusion is that my client is rated among the top 8 nodes that are connected to my client. then my client become full node.

Maybe it’s related to the client. I installed peerunity on a brand new machine and keep it running for half a day and I found 9 connections!