Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ go.work

# Local data directory
/.dingo
/.devnet

# node_modules for npm publishing
node_modules/
2 changes: 1 addition & 1 deletion config/cardano/devnet/byron-genesis.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"k": 2160,
"protocolMagic": 42
},
"startTime": 1657186415,
"startTime": 1754080724,
"blockVersionData": {
"scriptVersion": 0,
"slotDuration": "250",
Expand Down
2 changes: 1 addition & 1 deletion config/cardano/devnet/shelley-genesis.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,6 @@
"074a515f7f32bf31a4f41c7417a8136e8152bfb42f06d71b389a6896": "8a219b698d3b6e034391ae84cee62f1d76b6fbc45ddfe4e31e0d4b60"
}
},
"systemStart": "2022-07-07T09:33:35Z",
"systemStart": "2025-08-01T20:38:44Z",
"updateQuorum": 2
}
8 changes: 7 additions & 1 deletion devnet.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
#!/usr/bin/env bash

export CARDANO_NETWORK=devnet
export CARDANO_CONFIG=./config/cardano/${CARDANO_NETWORK}/config.json
export CARDANO_CONFIG=./config/cardano/devnet/config.json
export CARDANO_DATABASE_PATH=.devnet
export CARDANO_DEV_MODE=true

conf=$(dirname $CARDANO_CONFIG)
now=$(date -u +%s)
echo setting start time in $conf to $now
sed -i -e "s/startTime\": .*,/startTime\": $now,/" $conf/byron-genesis.json
sed -i -e "s/systemStart\": .*,/systemStart\": \"$(date -u +%Y-%m-%dT%H:%M:%SZ --date=@$now)\",/" $conf/shelley-genesis.json

echo resetting .devnet
rm -rf .devnet/*

Expand Down
Loading