Skip to content

Commit e10e70e

Browse files
author
LazyLuis
committed
enhance vote extension
1 parent a4e719c commit e10e70e

11 files changed

Lines changed: 962 additions & 279 deletions

File tree

cmd/sided/cmd/config.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ bitcoin_rpc_user = ""
7070
bitcoin_rpc_password = ""
7171
http_post_mode = true
7272
disable_tls = true
73-
7473
`
7574

7675
return customAppTemplate, customAppConfig

go.mod

Lines changed: 138 additions & 1 deletion
Large diffs are not rendered by default.

go.sum

Lines changed: 326 additions & 0 deletions
Large diffs are not rendered by default.

proto/side/oracle/oracle.proto

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,15 @@ message BlockHeader {
2727
int32 ntx = 9;
2828
}
2929

30+
message Blocks {
31+
int64 best = 1;
32+
repeated BlockHeader headers = 2;
33+
}
34+
3035
// Oracle Vote Extenstion
3136
message OracleVoteExtension {
3237
int64 height = 1;
33-
map<string, string> prices = 2 [(gogoproto.nullable) = false];
34-
repeated BlockHeader blocks = 3;
35-
bool has_error = 4;
38+
Blocks blocks = 2;
39+
map<string, string> prices = 3 [(gogoproto.nullable) = false];
40+
string proposer = 4;
3641
}

scripts/local_cluster.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

3-
N=3
3+
N=4
44
START=2 # start all node
55
# START=3 # skip validator 2
66
if [[ -n "$1" ]]; then

0 commit comments

Comments
 (0)