Skip to content

Commit

Permalink
Genesis timestamp hotfix (#3139)
Browse files Browse the repository at this point in the history
* Genesis timestamp hotfix
* Use escaped slash branch names for finding PV keys
  • Loading branch information
mrmr1993 authored and bkase committed Aug 8, 2019
1 parent d1c08d4 commit dec2a38
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions scripts/pvkeys-download.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,14 @@ set +e
PR_NUMBER=`basename ${CIRCLE_PULL_REQUEST:-NOPR}`
GH_API="https://api.github.com/repos/CodaProtocol/coda/pulls"
MERGE_INTO_BRANCH=`curl -s ${GH_API}/${PR_NUMBER} | jq -r .base.ref`
CIRCLE_BRANCH_NOSLASH=$( echo ${CIRCLE_BRANCH} | sed 's!/!-!; s!!-!g' )
MERGE_INTO_BRANCH_NOSLASH=$( echo ${MERGE_INTO_BRANCH} | sed 's!/!-!; s!!-!g' )

# Iterate over a few name variations until you a match?
NAME_VARIATIONS="
keys-${CIRCLE_BRANCH_NOSLASH:-NOBRANCH_NOSLASH}-${DUNE_PROFILE:-NOPROFILE}.tar.bz2
keys-${CIRCLE_BRANCH:-NOBRANCH}-${DUNE_PROFILE:-NOPROFILE}.tar.bz2
keys-${MERGE_INTO_BRANCH_NOSLASH:-NOBRANCH_NOSLASH}-${DUNE_PROFILE:-NOPROFILE}.tar.bz2
keys-${MERGE_INTO_BRANCH:-NOBRANCH}-${DUNE_PROFILE:-NOPROFILE}.tar.bz2
keys-temporary_hack-${DUNE_PROFILE:-NOPROFILE}.tar.bz2
NOTFOUND
Expand Down
2 changes: 1 addition & 1 deletion src/config/testnet_postake_medium_curves.mlh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
[%%define fake_hash false]

[%%define genesis_ledger "testnet_postake"]
[%%define genesis_state_timestamp "2019-08-01 12:00:00-07:00"]
[%%define genesis_state_timestamp "2019-08-08 09:00:00-07:00"]
[%%define block_window_duration 300000]

[%%define integration_tests false]
Expand Down

0 comments on commit dec2a38

Please sign in to comment.