forked from stellar/stellar-core
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade protocol for CAP-0034 / protocol issue 622
This commit implements the protocol change documented in CAP-0034: https://github.com/stellar/stellar-protocol/blob/master/core/cap-0034.md (It does not bump the protocol version, because the version has already been bumped since the last stellar-core release.) That proposal came from the discussion of stellar-protocol issue stellar#622: stellar/stellar-protocol#622 The CAP enumerates all the semantic changes in this commit. Here are a couple of implementation notes too specific to the code to be mentioned in the CAP: - The interfaces that had an "upperBoundCloseTimeOffset" added by PR 2608 have now also been extended with "lowerBoundCloseTimeOffset"s, which analogously affect the conditions under which isTooEarly() returns true, allowing the new CAP-34 code to validate minTime as well as maxTime (the latter uses "upperBoundCloseTimeOffset") against the next close time (rather than the last ledger close time). - testSCPDriver() has been not only extended to test new behaviors, but also refactored to allow more test cases to be added by adding more test case parameters to a vector.
- Loading branch information
Showing
21 changed files
with
553 additions
and
226 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.