Skip to content

Commit

Permalink
Add scp to dumpxdr.
Browse files Browse the repository at this point in the history
  • Loading branch information
graydon committed Jan 12, 2016
1 parent b40fd7c commit 89763c2
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/main/dumpxdr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ dumpstream(XDRInputFileStream& in)
void
dumpxdr(std::string const& filename)
{
std::regex rx(".*(ledger|bucket|transactions|results)-[[:xdigit:]]+\\.xdr");
std::regex rx(".*(ledger|bucket|transactions|results|scp)-[[:xdigit:]]+\\.xdr");
std::smatch sm;
if (std::regex_match(filename, sm, rx))
{
Expand All @@ -41,11 +41,15 @@ dumpxdr(std::string const& filename)
{
dumpstream<TransactionHistoryEntry>(in);
}
else
else if (sm[1] == "results")
{
assert(sm[1] == "results");
dumpstream<TransactionHistoryResultEntry>(in);
}
else
{
assert(sm[1] == "scp");
dumpstream<SCPHistoryEntry>(in);
}
}
else
{
Expand Down

5 comments on commit 89763c2

@latobarita
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

saw approval from jedmccaleb
at graydon@89763c2

@latobarita
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging graydon/stellar-core/inferquorum = 89763c2 into auto

@latobarita
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

graydon/stellar-core/inferquorum = 89763c2 merged ok, testing candidate = 2f015f6

@latobarita
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@latobarita
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fast-forwarding master to auto = 2f015f6

Please sign in to comment.