nodes/resolve
- Dominant language
- C#
- Stars
- 8k
- Forks
- 2.8k
- PR merge metrics
- No merged PRs in 30d
Description
Excuse me, I first set up 127.0.0.1:5001, then called mine 6 times,
and called /transactions/new several times in the second time to get the following block:
{
"index": 2,
"previous_hash": "5d988208db5c04a5b35e1fc32103a9bc32e884ecc70c639a53b9b2ebfbe8ad1b",
"proof": 43434,
"timestamp": 1641113376.5464342,
"transactions": [
{
"amount": 5,
"recipient": "someone-other-address",
"sender": "d4ee26eee15148ee92c6cd394edd974e"
},
{
"amount": 5,
"recipient": "someone-other-address",
"sender": "d4ee26eee15148ee92c6cd394edd974e"
},
{
"amount": 5,
"recipient": "someone-other-address",
"sender": "d4ee26eee15148ee92c6cd394edd974e"
},
{
"amount": 1,
"recipient": "419a3b3ff4024513bedbce5316f45179",
"sender": "0"
}
]
}
Then I created a new node 127.0.0.1:5001, added it to 127.0.0.1:5000 with /nodes/register,
and called 127.0.0.1:5001/mine to get 18 blocks ,
and then call 127.0.0.1:5000 / nodes/resolve,
it will determine 18 block is greater than 6 block,
and update the current chains to 127.0.0.1:5001 chains,
so my original chains in the second block of trans Wouldn't actions be incorrect?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.