Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
1654323
genesis implementation poc
randygrok Mar 19, 2025
c095c58
use genesis interface
randygrok Mar 19, 2025
64d7ce7
temp commit
randygrok Mar 19, 2025
9f54416
more changes
randygrok Mar 19, 2025
cb8451b
make tests pass
randygrok Mar 19, 2025
6ac0053
fix lint
randygrok Mar 20, 2025
973c3ad
Merge remote-tracking branch 'origin/feature/exec_api' into feat/gene…
randygrok Mar 20, 2025
a6e16b7
Merge branch 'feature/exec_api' into feat/genesis-clean
randygrok Mar 20, 2025
1fcd875
temp commit
randygrok Mar 24, 2025
95cfadd
fix tests
randygrok Mar 24, 2025
54db65e
rename fields in config
randygrok Mar 24, 2025
cc57479
add ExtraData
randygrok Mar 24, 2025
00c4281
genesis load
randygrok Mar 24, 2025
2f4a20d
move genesis file to pkg
randygrok Mar 24, 2025
6667115
load genesis file
randygrok Mar 24, 2025
4038f62
add io test
randygrok Mar 24, 2025
8175afd
update block manager cmd
randygrok Mar 24, 2025
795bcd3
add message into execution core
randygrok Mar 24, 2025
af5ee7b
remove go.sum
randygrok Mar 24, 2025
e874a21
Merge remote-tracking branch 'origin/feature/exec_api' into feat/gene…
randygrok Mar 24, 2025
d561021
Fix lint problems
randygrok Mar 24, 2025
55c543e
use default genesis
randygrok Mar 24, 2025
66d60b3
clean markdown lint
randygrok Mar 24, 2025
dc510ad
bring back creation of genesis
randygrok Mar 24, 2025
3e5476e
revert
randygrok Mar 24, 2025
d342066
fix markdown lint
randygrok Mar 24, 2025
96afdf6
fix errors with markdown
randygrok Mar 24, 2025
a9ddcd4
fix markdown lint
randygrok Mar 24, 2025
8acbfb4
review changes
randygrok Mar 24, 2025
dd18f2d
remove commented code
randygrok Mar 24, 2025
4f1d4f2
fix md
randygrok Mar 24, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
review changes
  • Loading branch information
randygrok committed Mar 24, 2025
commit 8acbfb4150955bd7ac71e2e5c0b09e331945f643
196 changes: 0 additions & 196 deletions block/block-manager.md

This file was deleted.

5 changes: 2 additions & 3 deletions pkg/genesis/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,8 @@ type GenesisExtraData struct {

// ValidatorInfo represents a validator's configuration in genesis
type ValidatorInfo struct {
Address []byte `json:"address"`
PublicKey []byte `json:"public_key"`
VotingPower int64 `json:"voting_power"`
Address []byte `json:"address"`
PublicKey []byte `json:"public_key"`
}

// Genesis represents the genesis state of the blockchain
Expand Down
5 changes: 2 additions & 3 deletions pkg/genesis/genesis_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,8 @@ func TestGenesis_Validate(t *testing.T) {
ProposerAddress: []byte("proposer"),
Validators: []ValidatorInfo{
{
Address: []byte("validator"),
PublicKey: []byte("pubkey"),
VotingPower: 1,
Address: []byte("validator"),
PublicKey: []byte("pubkey"),
},
},
},
Expand Down
5 changes: 2 additions & 3 deletions pkg/genesis/io_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,8 @@ func TestLoadAndSaveGenesis(t *testing.T) {
ProposerAddress: []byte("proposer-address"),
Validators: []ValidatorInfo{
{
Address: []byte("validator-1"),
PublicKey: []byte("pubkey-1"),
VotingPower: 10,
Address: []byte("validator-1"),
PublicKey: []byte("pubkey-1"),
},
},
},
Expand Down