diff --git a/legislator1/decree.txt b/legislator1/decree.txt new file mode 100644 index 0000000..c227083 --- /dev/null +++ b/legislator1/decree.txt @@ -0,0 +1 @@ +0 \ No newline at end of file diff --git a/legislator1/last-tried.txt b/legislator1/last-tried.txt new file mode 100644 index 0000000..56a6051 --- /dev/null +++ b/legislator1/last-tried.txt @@ -0,0 +1 @@ +1 \ No newline at end of file diff --git a/legislator1/next-bal.txt b/legislator1/next-bal.txt new file mode 100644 index 0000000..c227083 --- /dev/null +++ b/legislator1/next-bal.txt @@ -0,0 +1 @@ +0 \ No newline at end of file diff --git a/legislator2/decree.txt b/legislator2/decree.txt new file mode 100644 index 0000000..c227083 --- /dev/null +++ b/legislator2/decree.txt @@ -0,0 +1 @@ +0 \ No newline at end of file diff --git a/legislator2/last-tried.txt b/legislator2/last-tried.txt new file mode 100644 index 0000000..c227083 --- /dev/null +++ b/legislator2/last-tried.txt @@ -0,0 +1 @@ +0 \ No newline at end of file diff --git a/legislator2/next-bal.txt b/legislator2/next-bal.txt new file mode 100644 index 0000000..56a6051 --- /dev/null +++ b/legislator2/next-bal.txt @@ -0,0 +1 @@ +1 \ No newline at end of file diff --git a/legislator2/prev-vote-decree.txt b/legislator2/prev-vote-decree.txt new file mode 100644 index 0000000..c227083 --- /dev/null +++ b/legislator2/prev-vote-decree.txt @@ -0,0 +1 @@ +0 \ No newline at end of file diff --git a/legislator2/prev-vote-id.txt b/legislator2/prev-vote-id.txt new file mode 100644 index 0000000..56a6051 --- /dev/null +++ b/legislator2/prev-vote-id.txt @@ -0,0 +1 @@ +1 \ No newline at end of file diff --git a/legislator3/decree.txt b/legislator3/decree.txt new file mode 100644 index 0000000..c227083 --- /dev/null +++ b/legislator3/decree.txt @@ -0,0 +1 @@ +0 \ No newline at end of file diff --git a/legislator3/next-bal.txt b/legislator3/next-bal.txt new file mode 100644 index 0000000..56a6051 --- /dev/null +++ b/legislator3/next-bal.txt @@ -0,0 +1 @@ +1 \ No newline at end of file diff --git a/legislator3/prev-vote-decree.txt b/legislator3/prev-vote-decree.txt new file mode 100644 index 0000000..c227083 --- /dev/null +++ b/legislator3/prev-vote-decree.txt @@ -0,0 +1 @@ +0 \ No newline at end of file diff --git a/legislator3/prev-vote-id.txt b/legislator3/prev-vote-id.txt new file mode 100644 index 0000000..56a6051 --- /dev/null +++ b/legislator3/prev-vote-id.txt @@ -0,0 +1 @@ +1 \ No newline at end of file diff --git a/src/legislator/legislator.cc b/src/legislator/legislator.cc index 751f775..0a83f25 100644 --- a/src/legislator/legislator.cc +++ b/src/legislator/legislator.cc @@ -82,7 +82,7 @@ namespace paxos void Legislator::receive_last_vote(Message message) { std::string ballot_str = *message.get_header("ballot"); - std::string vote_ballot_id_str = *message.get_header("vote"); + std::string vote_ballot_id_str = *message.get_header("vote_ballot_id"); std::string sender = *message.get_header("sender"); log(config_.name + " has received a LastVote(" + ballot_str + ", " + vote_ballot_id_str