Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[1]区块链体验 #1

Open
ety001 opened this issue Apr 21, 2019 · 2 comments
Open

[1]区块链体验 #1

ety001 opened this issue Apr 21, 2019 · 2 comments
Labels

Comments

@ety001
Copy link
Member

ety001 commented Apr 21, 2019

视频: https://v.youku.com/v_show/id_XNDE0NzcyMTk4MA==.html

参考:
https://www.zhihu.com/question/20941124

有问题的话,可以在下面提。

@ety001 ety001 added the share label Apr 21, 2019
@fanmingfei
Copy link
Member

问题1:当发起交易时,会根据整个链这笔钱的链来计算出 这个账户可以支付的钱吗?那岂不是很麻烦,要走一波很长的链。
问题2:当发起一个交易时,广播到整个网络,这个信息传输的路径是怎样的。

@ety001
Copy link
Member Author

ety001 commented Apr 21, 2019

问题1:当发起交易时,会根据整个链这笔钱的链来计算出 这个账户可以支付的钱吗?那岂不是很麻烦,要走一波很长的链。
问题2:当发起一个交易时,广播到整个网络,这个信息传输的路径是怎样的。

问题1: 理论上应该是有缓存数据的。BTC的情况我不清楚,BTS的话,在节点启动的时候,会检查是否有创建好的索引文件,如果没有,就会从第一个块开始整理数据,直到本地的最新块结束,这样这时的内存数据,就会有很多当时的状态值,比如每个账户的余额之类的。

问题2: 由于是P2P网络,所以应该按照P2P的协议来进行数据广播,具体这块没有研究过,我推测这个信息广播途径应该是你先发给你连接着的所有节点,然后这些节点再进一步广播到他们所连接的节点。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants