xxxxxxxxxx
Sign in to import from GitHub:
Link to GitHub:
Or start with a template:
A test looks like the following:
100V,8E,32S,8M: 0-5*A, 0-5AB, 2-7AC [2]6-7AC, 0-4CD,, [=6] 0-4DE 5-7AB: E**
This parses as follows:
EPOCH_LENGTH
is 8. SHARD_COUNT
is 32. The MIN_COMMITTEE_SIZE
is 8.A
, a child of the genesis (*
)B
, a child of A
C
, a child of A
, and validators 6-7 from the validator set of slot 2 do the sameD
, a child of C
E
, a child of D
, and validators 5-7 of the validator set of slot 6 vote on the same block B
defined above. By the way, this slot actually is slot 6, and the interpreter should throw an exception if it’s not.It is assumed that if a vote is made during slot n
, it is included into all blocks created after slot n
.
After doing this, the head is E
, the last justified block is the genesis, and the last finalized block is the genesis.
Testing lang implementations should allow the last section of the test to be left out, in which case the test would run, and the implementation would output what it thinks is the correct result, and if desired a diagram of the blockchain structure (that looks something like https://vitalik.ca/files/RPJ.png).
or
Do you really want to delete this template?
Syntax | Example | Reference | |
---|---|---|---|
# Header | Header | 基本排版 | |
- Unordered List |
|
||
1. Ordered List |
|
||
- [ ] Todo List |
|
||
> Blockquote | Blockquote |
||
**Bold font** | Bold font | ||
*Italics font* | Italics font | ||
~~Strikethrough~~ | |||
19^th^ | 19th | ||
H~2~O | H2O | ||
++Inserted text++ | Inserted text | ||
==Marked text== | Marked text | ||
[link text](https:// "title") | Link | ||
 | Image | ||
`Code` | Code |
在筆記中貼入程式碼 | |
```javascript var i = 0; ``` |
|
||
:smile: | ![]() |
Emoji list | |
{%youtube youtube_id %} | Externals | ||
$L^aT_eX$ | LaTeX | ||
:::info This is a alert area. ::: |
This is a alert area. |
On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?
Please give us some advice and help us improve HackMD.
Please sign in to GitHub and install the HackMD app on your GitHub repo. Learn more
Sign in to GitHubHackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
Syncing