Skip to content

Instantly share code, notes, and snippets.

@lengyijun
Last active April 26, 2019 05:47
Show Gist options
  • Select an option

  • Save lengyijun/5c8b3d35aff48a072362007d9eb1af5c to your computer and use it in GitHub Desktop.

Select an option

Save lengyijun/5c8b3d35aff48a072362007d9eb1af5c to your computer and use it in GitHub Desktop.

Overview

  • free to join
  • not fully p2p. non-relay node connect to relay node
  • relays / non-relays
  • join consensus / not join consensus
carpenter -d data 
# you can monitor the consensus process using the carpenter tool for a given node.
# This tool parses the node.log file and prints out details for consensus-related events.

watch ./goal node status -d data
watch ./goal node lastround -d data
  • non-relay node don't need open port through firewall,don't store full state
  • can create a private network
@lengyijun

lengyijun commented Apr 25, 2019

Copy link
Copy Markdown
Author

algorand 节点不在线的情况

1000个commitee成员如果少几个本来也无所谓,效果与algorand受到网络攻击导致通信被阻止是一样的

@lengyijun

Copy link
Copy Markdown
Author

为什么algorand的leader选出来之后还要进行第二轮投票(验证者投票=委员会投票)

因为leader有1/3的概率是坏人,可以同时签多个区块来分叉攻击
而经过BA后分叉的概率就可以控制在极小值(SV中超过2/3是恶意节点的极端情况下)。Algorand抽签与Bitcoin算力抽签最大的不同之处在于,PoW不是预先抽签确定出块者身份,而是对交易打包后的区块进行算力抽签,因此发布多个不同区块的成本极高(几乎不可能),而Algorand中选中的Leader发布多个不同区块几乎没有成本。

@lengyijun

lengyijun commented Apr 25, 2019

Copy link
Copy Markdown
Author

turn on online

  • 只有online节点可以参加共识协议
  • 参加共识协议需要付钱
 ./goal account addpartkey -d data -a OMGRRVPYQO5EUNRORH7HL5JAGZEC2BGYPQNQWXFCH64574P3VBHRWNWZFI  \
--roundFirstValid 0 --roundLastValid 700000

./goal account changeonlinestatus -d data  \
-a OMGRRVPYQO5EUNRORH7HL5JAGZEC2BGYPQNQWXFCH64574P3VBHRWNWZFI  -o

from https://forum.algorand.org/t/address-offline-no-coin-from-the-dispenser/135

@lengyijun

lengyijun commented Apr 25, 2019

Copy link
Copy Markdown
Author
./goal account balance -d data -a OMGRRVPYQO5EUNRORH7HL5JAGZEC2BGYPQNQWXFCH64574P3VBHRWNWZFI

@lengyijun

lengyijun commented Apr 26, 2019

Copy link
Copy Markdown
Author
goal clerk send -a 100 	-t NJY27OQ2ZXK6OWBN44LE4K43TA2AV3DPILPYTHAJAMKIVZDWTEJKZJKO4A -d data
goal clerk send -a 100 	-t NJY27OQ2ZXK6OWBN44LE4K43TA2AV3DPILPYTHAJAMKIVZDWTEJKZJKO4A -d data -n "hello world"

https://www.algorand.com/task-spend-some-money/

@lengyijun

lengyijun commented Apr 26, 2019

Copy link
Copy Markdown
Author

REST API

curl http://$(cat algod.net)/v1/block/31538 -H "X-Algo-API-Token: $(cat algod.token)" 

sdk 通过127.0.0.1::8080 和algo testnet交互
https://medium.com/@jsign.uy/algochat-a-public-chat-on-algorand-testnet-f59bb2d15417

https://developer.algorand.org/docs/algod-rest-paths

@lengyijun

lengyijun commented Apr 26, 2019

Copy link
Copy Markdown
Author

Dutch auction

  • instead of fixed price
  • fair (大家的价格都一样)
  • recode on blockchain

The Algorand network has not yet launched and there are no token sales. The team has not yet sold any token. At launch, in the Mainnet, tokens are planned to be sold through a dutch auction, hence letting the market decides at which fair price these should be acquired.

@lengyijun

lengyijun commented Apr 26, 2019

Copy link
Copy Markdown
Author

Support

  • pay && receive money
  • multi signature
  • create && restore wallet
  • join consensus && monitor consensus

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment