Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple logical validators #68

Open
wants to merge 46 commits into
base: research
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
6057678
Initial commit for adding multiple logical validators
hrubaanna Aug 18, 2024
49a6f7c
Send commit message to validators
hrubaanna Aug 18, 2024
d4f5f8a
Renamed CoreMessage to CommitMessage
hrubaanna Aug 18, 2024
da04a71
Added commit message to validators and LinearizerTask
hrubaanna Aug 19, 2024
f476965
Added LinearizerTask to handle incoming validator blocks
hrubaanna Aug 19, 2024
5e7e4b0
Removed BlockStore parameter from LinearizerTask
hrubaanna Aug 19, 2024
26e0ef5
Added linearizer sender to constructor to enable communication with l…
hrubaanna Aug 19, 2024
694fdb5
Broke up run into multiple readable functions
hrubaanna Aug 23, 2024
b13cff9
Updated to global Linearizer
hrubaanna Aug 23, 2024
52051e0
Updated for global Linearizer
hrubaanna Aug 23, 2024
6d4fa72
Modified for global Linearizer
hrubaanna Aug 23, 2024
6c457f7
Updated global linearizer compatibility
hrubaanna Aug 25, 2024
f9a8f6b
Added global linearizer
hrubaanna Aug 25, 2024
6073e62
Added global linearizer to validators
hrubaanna Aug 25, 2024
fa7eac3
Removed LinearizerTask creation from main
hrubaanna Aug 25, 2024
25fe35c
Changed linearizer sender to send full block data as StatementBlock
hrubaanna Aug 26, 2024
ffb108e
Moved linearizer channel creation, fixed import error
hrubaanna Aug 26, 2024
b0f10dc
Changed try_new_block to async to process new modified try_commit
hrubaanna Aug 26, 2024
cc34d81
Added global linearizer, renamed handle_commit to observer_commit
hrubaanna Aug 26, 2024
2a55002
Renamed handle_commit to observe_commit in syncer
hrubaanna Aug 26, 2024
c92d927
Added global linearizer
hrubaanna Aug 26, 2024
a016c62
Modified handle_commit for global linearizer
hrubaanna Aug 26, 2024
9c12ded
Modified try_new_block for global linearizer
hrubaanna Aug 26, 2024
f65a547
Modified Linearizer and LinearizerTask logic
hrubaanna Aug 26, 2024
2ca15a0
Removed CommittedList struct
hrubaanna Aug 26, 2024
c961cff
Managed imports
hrubaanna Aug 26, 2024
44372fa
Added global linearizer to Validator
hrubaanna Aug 26, 2024
6644417
Added MachineConfig and NetworkConfig structs
hrubaanna Aug 27, 2024
956802c
Removed NetworkConfig and MachineInfo, we can get all info from publi…
hrubaanna Aug 28, 2024
89543d0
Unified use of authority_index to refer to single validator
hrubaanna Aug 28, 2024
af2e8f2
Added CommitMessage type
hrubaanna Aug 28, 2024
c3c73a6
Updated loading of addresses for multiple validators
hrubaanna Aug 28, 2024
8038655
Created channel for commit messages
hrubaanna Aug 28, 2024
049ccf0
Updated channel type for Commit messages.
hrubaanna Aug 28, 2024
d1f6f04
Modified local commit message channel to a broadcast channel.
hrubaanna Aug 30, 2024
8ad61eb
Added a method to accept and broadcast commit messages to validators.
hrubaanna Aug 30, 2024
43b7617
Added number of instances to validator
hrubaanna Aug 30, 2024
8754870
Swapped order of communicating commits with validators, then linearizer.
hrubaanna Aug 30, 2024
4359699
Added logic to handle incoming Commit message from validators
hrubaanna Aug 30, 2024
562f009
Added structures to manage incoming commit messages from validators
hrubaanna Aug 30, 2024
ceb9827
Fixed errors
hrubaanna Aug 30, 2024
3d7e15a
Working benchmark genesis
hrubaanna Sep 1, 2024
81aa4f8
Fixed returning of peer addresses
hrubaanna Sep 2, 2024
1eb57e6
Validators are connecting
hrubaanna Sep 2, 2024
4ce8d7b
Replaced Runtime with tokio task
hrubaanna Sep 3, 2024
f282d07
Managing asynchronous tx processing
hrubaanna Sep 3, 2024
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
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

207 changes: 207 additions & 0 deletions genesis_files/committee.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,207 @@
authorities:
- stake: 1
public_key:
- 238
- 26
- 164
- 154
- 68
- 89
- 223
- 232
- 19
- 163
- 207
- 110
- 184
- 130
- 4
- 18
- 48
- 199
- 178
- 85
- 132
- 105
- 222
- 129
- 248
- 124
- 155
- 242
- 59
- 241
- 10
- 3
- stake: 1
public_key:
- 12
- 34
- 158
- 39
- 168
- 198
- 158
- 122
- 254
- 134
- 144
- 13
- 251
- 206
- 171
- 110
- 246
- 210
- 7
- 88
- 44
- 18
- 122
- 13
- 153
- 254
- 155
- 63
- 181
- 162
- 6
- 138
- stake: 1
public_key:
- 42
- 104
- 89
- 152
- 238
- 68
- 149
- 58
- 62
- 176
- 165
- 211
- 22
- 147
- 127
- 129
- 10
- 128
- 189
- 204
- 149
- 44
- 10
- 160
- 123
- 77
- 130
- 179
- 254
- 212
- 89
- 194
- stake: 1
public_key:
- 127
- 127
- 221
- 28
- 168
- 215
- 195
- 237
- 130
- 6
- 19
- 113
- 120
- 180
- 123
- 202
- 254
- 122
- 84
- 212
- 160
- 180
- 206
- 91
- 217
- 226
- 89
- 120
- 24
- 75
- 72
- 206
- stake: 1
public_key:
- 63
- 60
- 36
- 122
- 230
- 160
- 153
- 232
- 117
- 71
- 39
- 142
- 131
- 210
- 181
- 26
- 214
- 184
- 251
- 133
- 255
- 29
- 114
- 101
- 232
- 73
- 207
- 120
- 42
- 135
- 29
- 112
- stake: 1
public_key:
- 64
- 244
- 175
- 180
- 60
- 145
- 75
- 183
- 48
- 238
- 5
- 14
- 163
- 163
- 24
- 233
- 140
- 187
- 74
- 46
- 103
- 222
- 245
- 208
- 232
- 125
- 114
- 170
- 69
- 11
- 151
- 56
validity_threshold: 2
quorum_threshold: 4
37 changes: 37 additions & 0 deletions genesis_files/private-config-0.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
authority_index: 0
machine_index: 0
instance_index: 0
keypair:
- 127
- 111
- 44
- 205
- 178
- 63
- 42
- 187
- 123
- 105
- 39
- 142
- 148
- 124
- 1
- 198
- 22
- 10
- 49
- 207
- 2
- 193
- 157
- 6
- 208
- 246
- 229
- 171
- 29
- 118
- 139
- 149
storage_path: ./genesis_files/storage-0
37 changes: 37 additions & 0 deletions genesis_files/private-config-1.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
authority_index: 1
machine_index: 0
instance_index: 1
keypair:
- 17
- 123
- 225
- 222
- 84
- 157
- 29
- 67
- 34
- 196
- 113
- 31
- 17
- 239
- 160
- 197
- 19
- 121
- 3
- 18
- 79
- 133
- 252
- 55
- 199
- 97
- 255
- 201
- 26
- 206
- 48
- 203
storage_path: ./genesis_files/storage-1
37 changes: 37 additions & 0 deletions genesis_files/private-config-2.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
authority_index: 2
machine_index: 0
instance_index: 2
keypair:
- 172
- 127
- 13
- 158
- 174
- 164
- 212
- 191
- 84
- 56
- 184
- 135
- 227
- 77
- 12
- 248
- 126
- 127
- 152
- 217
- 125
- 167
- 14
- 255
- 0
- 24
- 80
- 72
- 123
- 44
- 174
- 35
storage_path: ./genesis_files/storage-2
37 changes: 37 additions & 0 deletions genesis_files/private-config-3.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
authority_index: 3
machine_index: 1
instance_index: 0
keypair:
- 187
- 183
- 212
- 11
- 123
- 184
- 228
- 28
- 85
- 6
- 150
- 253
- 239
- 120
- 255
- 246
- 240
- 19
- 187
- 52
- 98
- 123
- 165
- 12
- 162
- 214
- 59
- 110
- 132
- 207
- 250
- 108
storage_path: ./genesis_files/storage-3
Loading