-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix slash event on double sign (full resync needed) * fix version * Fix double sign slashing issue #215 * skip already offline candidates to prevent double punishing * Make block hash lowercase * Remove unused fields from config * Fix issue #209 * Update changelog * Delete coins with 0 reserves #217 * Add test * Export/import app state * Import state * Fix genesis * Add tests * Switch to Amino and fixes * Fix frozen funds height * Refactor * Fix * Add ?include_stakes to /candidates endpoint #222 * Update tendermint to v0.31.0 * Update tendermint to v0.31.0 * UpdaUpdate tendermint to v0.31.0 * Add CoinLiquidation event #221 Set height to be always in uint64 * Fixes * Change `stake` to `value` in DelegateTx * Invariants * Fix nil pointer exception * Fix nil pointer exception * Record total slashed in state * Fix record total slashed in state * Fix coin creation issue * Fix genesis * Fix node termination * Fix invariants * Fix mempool issue #220 * Fix tests * Recheck mempool once per minute * Small refactor * Change `pubkey` to `pub_key` in all API resources * Add invariants checker each 720 blocks * Fix events issue * Fix invariants * Fix gui * Fix gui * Fix invariants * Create new state for invariants checking * Fix coin creation issues * Compute validator power from genesis * Update genesis * Update config
- Loading branch information
1 parent
19084d3
commit 10703fe
Showing
65 changed files
with
1,462 additions
and
368 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
package main | ||
|
||
import ( | ||
"github.com/MinterTeam/go-amino" | ||
"github.com/MinterTeam/minter-go-node/cmd/utils" | ||
"github.com/MinterTeam/minter-go-node/core/appdb" | ||
"github.com/MinterTeam/minter-go-node/core/state" | ||
"github.com/tendermint/tendermint/libs/common" | ||
"github.com/tendermint/tendermint/libs/db" | ||
) | ||
|
||
func main() { | ||
err := common.EnsureDir(utils.GetMinterHome()+"/config", 0777) | ||
if err != nil { | ||
panic(err) | ||
} | ||
|
||
ldb, err := db.NewGoLevelDB("state", utils.GetMinterHome()+"/data") | ||
if err != nil { | ||
panic(err) | ||
} | ||
|
||
applicationDB := appdb.NewAppDB() | ||
height := applicationDB.GetLastHeight() | ||
currentState, err := state.New(height, ldb) | ||
if err != nil { | ||
panic(err) | ||
} | ||
|
||
cdc := amino.NewCodec() | ||
|
||
jsonBytes, err := cdc.MarshalJSONIndent(currentState.Export(height), "", " ") | ||
if err != nil { | ||
panic(err) | ||
} | ||
|
||
println(string(jsonBytes)) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package main | ||
|
||
import ( | ||
"encoding/json" | ||
"github.com/MinterTeam/minter-go-node/genesis" | ||
) | ||
|
||
func main() { | ||
gen, _ := genesis.GetTestnetGenesis() | ||
genesisJson, _ := json.MarshalIndent(gen, "", " ") | ||
println(string(genesisJson)) | ||
} |
Oops, something went wrong.