Skip to content
This repository was archived by the owner on Sep 6, 2018. It is now read-only.

Commit

Permalink
Merge pull request #15 from ManfredKarrer/voting
Browse files Browse the repository at this point in the history
Change IntegerVoteResult to LongVoteResult
  • Loading branch information
ManfredKarrer authored Apr 5, 2018
2 parents a222ea5 + fd3e121 commit 5bb2cf1
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 11 deletions.
9 changes: 9 additions & 0 deletions src/main/java/bisq/common/app/DevEnv.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@

package bisq.common.app;

import lombok.extern.slf4j.Slf4j;

@Slf4j
public class DevEnv {
// Was used for P2P network stress test to adjust several setting for the tests (e.g. use lower btc fees for offers,..)
public static final boolean STRESS_TEST_MODE = false;
Expand Down Expand Up @@ -44,4 +47,10 @@ public static void setDevMode(boolean devMode) {

public static final boolean DAO_PHASE2_ACTIVATED = false;
public static final boolean DAO_TRADING_ACTIVATED = false;

public static void logErrorAndThrowIfDevMode(String msg) {
log.error(msg);
if (devMode)
throw new RuntimeException(msg);
}
}
21 changes: 10 additions & 11 deletions src/main/proto/pb.proto
Original file line number Diff line number Diff line change
Expand Up @@ -1366,15 +1366,14 @@ message ProposalPayload {
string title = 5;
string description = 6;
string link = 7;
string node_address = 8;
bytes owner_pub_key_encoded = 9;
string tx_id = 10;
map<string, string> extra_data = 11;
bytes owner_pub_key_encoded = 8;
string tx_id = 9;
map<string, string> extra_data = 10;
oneof message {
CompensationRequestPayload compensation_request_payload = 12;
GenericProposalPayload generic_proposal_payload = 13;
ChangeParamProposalPayload change_param_proposal_payload = 14;
RemoveAltcoinProposalPayload remove_altcoin_proposal_payload = 15;
CompensationRequestPayload compensation_request_payload = 11;
GenericProposalPayload generic_proposal_payload = 12;
ChangeParamProposalPayload change_param_proposal_payload = 13;
RemoveAltcoinProposalPayload remove_altcoin_proposal_payload = 14;
}
}

Expand Down Expand Up @@ -1442,16 +1441,16 @@ message RemoveAltcoinProposal {
message VoteResult {
oneof message {
BooleanVoteResult boolean_vote_result = 1;
IntegerVoteResult integer_vote_result = 2;
LongVoteResult long_vote_result = 2;
}
}

message BooleanVoteResult {
bool accepted = 1;
}

message IntegerVoteResult {
uint32 value = 1;
message LongVoteResult {
uint64 value = 1;
}

///////////////////////////////////////////////////////////////////////////////////////////
Expand Down

0 comments on commit 5bb2cf1

Please sign in to comment.