Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
110 commits
Select commit Hold shift + click to select a range
872e647
Merge pull request #1217 from HathorNetwork/release-candidate
jansegre Feb 4, 2025
05f1958
Merge branch 'release' into master
jansegre Feb 4, 2025
314f6ad
fix(cli): regression on `run_node --help`
jansegre Feb 5, 2025
22ab6a8
Merge pull request #1220 from HathorNetwork/fix/cli-help-regression
jansegre Feb 6, 2025
2167098
fix(metrics): websocket metrics was not being updated
jansegre Feb 6, 2025
00b82d9
Merge pull request #1221 from HathorNetwork/fix/websocket-metrics
jansegre Feb 13, 2025
91e2bd8
chore: Improve HathorSettings imports
msbrogli Feb 14, 2025
4513ddf
feat(dag-builder): improve DAGBuilder (#1225)
glevco Feb 15, 2025
dbcff55
refactor: cleanup full verification (#1218)
glevco Feb 18, 2025
6f3124a
feat: add --temp-data CLI option
glevco Feb 25, 2025
80c5ae3
refactor: remove memory storage and indexes
glevco Mar 14, 2025
f534d0d
fix: update python-rocksdb (#1244)
glevco Mar 19, 2025
ad806ae
feat(events): change empty decoded from None to empty dict (#1250)
glevco Mar 31, 2025
70700f7
feat(vertex_handler): Improve new vertex log
msbrogli Feb 14, 2025
95bb366
chore: add localnet config (#1246)
glevco Apr 3, 2025
ebc723e
chore: add make fix-rocksdb command (#1254)
glevco Apr 3, 2025
e1e23a1
chore: update poetry lock file so python-rocksdb is v0.9.3
jansegre Mar 26, 2025
e464d73
Merge pull request #1251 from HathorNetwork/chore/update-poetry-lock
jansegre Apr 8, 2025
3884dc3
chore(gitignore): ignore coverage, keys.json, and .idea files (#1257)
raul-oliveira Apr 15, 2025
d0da2f5
chore: update python-hathorlib to 0.8.0
jansegre Apr 17, 2025
c6f7689
Merge pull request #1261 from HathorNetwork/chore/update-hathorlib
jansegre Apr 17, 2025
57069f1
chore: update hathorlib to v0.8.1 (#1263)
glevco Apr 28, 2025
727dd3d
chore: update hathorlib to v0.9.0 (#1273)
glevco May 20, 2025
be7bc4e
chore: update hathorlib to v0.9.1
glevco May 21, 2025
edfcac2
Merge pull request #1274 from HathorNetwork/chore/update-hathorlib
jansegre May 21, 2025
b434d44
chore: remove Python 3.10 support (#1282)
glevco Jun 2, 2025
5927188
chore: update hathorlib to v0.10.0 (#1283)
glevco Jun 2, 2025
58a7796
feat(nano): implement serialization module (#1276)
glevco Jun 2, 2025
edc4f98
feat(nano): implement fundamental nano structures (#1277)
glevco Jun 3, 2025
b7abaae
feat(nano): implement nc_types module (#1278)
glevco Jun 3, 2025
b6a3221
refactor(consensus): Split on_new_vertex() and remove fails_silently
msbrogli Jun 6, 2025
d0043ba
feat(p2p): Add misbehavior score for unsolicited vertices
msbrogli Jun 6, 2025
d2eaf78
feat(nano): implement storage module
glevco Jun 6, 2025
24fa883
fix(nano): address part 4 issues (#258)
glevco Jun 6, 2025
5821d59
Merge pull request #1279 from HathorNetwork/feat/nano/storages
jansegre Jun 6, 2025
a3ecfc4
fix(cli): quick-test subcommand regression after VertexHandler refactor
jansegre Jun 9, 2025
a096b87
Merge pull request #1298 from HathorNetwork/fix/cli-quick-test
jansegre Jun 9, 2025
80d9f31
feat(nano): implement fields module
glevco Jun 3, 2025
f5befca
Merge pull request #1280 from HathorNetwork/feat/nano/fields
jansegre Jun 10, 2025
c15f4a0
feat(nano): implement more fundamental structures
glevco Jun 10, 2025
fac0881
Merge pull request #1281 from HathorNetwork/feat/nano/fundamentals-2
jansegre Jun 13, 2025
cb8cc56
feat(nano): add indexes and more
glevco Jun 13, 2025
47c3dd1
Merge pull request #1284 from HathorNetwork/feat/nano/indexes
jansegre Jun 13, 2025
b78fea7
feat(nano): miscellaneous changes
glevco Jun 13, 2025
bb1ff58
Merge pull request #1285 from HathorNetwork/feat/nano/misc
jansegre Jun 13, 2025
71795da
feat(nano): implement headers support
glevco Jun 13, 2025
cecbfb0
Merge pull request #1286 from HathorNetwork/feat/nano/headers
jansegre Jun 16, 2025
ed4b8db
feat(nano): implement new metadata
glevco Jun 16, 2025
a249336
Merge pull request #1287 from HathorNetwork/feat/nano/metadata
jansegre Jun 16, 2025
197095e
feat(nano): implement runner
glevco Jun 16, 2025
8fcb384
Merge pull request #1288 from HathorNetwork/feat/nano/runner
jansegre Jun 17, 2025
16253fa
feat(nano): implement resources and events
glevco Jun 17, 2025
e1c63ed
Merge pull request #1289 from HathorNetwork/feat/nano/resources-and-e…
jansegre Jun 18, 2025
58dfc20
chore: update hathorlib to v0.11.0
glevco Jun 23, 2025
6d625c6
Merge pull request #1300 from HathorNetwork/chore/update-hathorlib
jansegre Jun 23, 2025
0519490
feat(nano): implement consensus
glevco Jun 18, 2025
ad46131
Merge pull request #1290 from HathorNetwork/feat/nano/consensus
jansegre Jun 23, 2025
60366fd
tests(nano): add basic structures and resources tests
glevco Jun 23, 2025
c8cc9a3
Merge pull request #1291 from HathorNetwork/tests/nano/resources
jansegre Jun 24, 2025
4fb6bb6
test(nano): add tests (batch 1)
glevco Jun 24, 2025
a0e9f16
Merge pull request #1292 from HathorNetwork/tests/nano/batch1
jansegre Jun 26, 2025
9b71b40
test(nano): add tests (batch 2)
glevco Jun 26, 2025
99f0b26
Merge pull request #1293 from HathorNetwork/tests/nano/batch2
jansegre Jun 26, 2025
d1b8458
feat(nano): add recent changes
glevco Jun 26, 2025
9d1fe2a
Merge pull request #1301 from HathorNetwork/feat/nano/part17
jansegre Jun 26, 2025
1c11186
chore: bump version to v0.64.0
jansegre Jun 26, 2025
319605e
Merge pull request #1303 from HathorNetwork/chore/v0.64.0
jansegre Jun 26, 2025
a7020b7
chore(nano): config for nano-testnet-bravo
jansegre Jun 26, 2025
1cba342
Merge pull request #1306 from HathorNetwork/chore/nano-testnet-bravo
jansegre Jun 27, 2025
623adbe
chore: accept -alpha.N and -beta.N pre-release tags
jansegre Jun 27, 2025
85e9049
Merge pull request #1307 from HathorNetwork/chore/accept-alpha-beta-tags
jansegre Jun 27, 2025
d32e1c7
refactor(nano): post merge refactors [part 1]
glevco Jun 27, 2025
07ea5a7
Merge pull request #1304 from HathorNetwork/refactor/nano/post-merge-1
jansegre Jun 27, 2025
ea4c1d6
refactor(nano): post merge refactors [part 2]
glevco Jun 27, 2025
f6a9a4d
Merge pull request #1305 from HathorNetwork/refactor/nano/post-merge-2
jansegre Jun 30, 2025
eab464a
chore: Adjust '/nano_contract/state' and '/get_block_template' rate l…
luislhl Jul 4, 2025
914d559
chore: add new allowed OCB address
jansegre Jun 30, 2025
5aa5543
Merge pull request #1308 from HathorNetwork/chore/add-nano-testnet-oc…
jansegre Jul 10, 2025
e417e0e
fix(nano): non-idempotent indexes handling (#1313)
glevco Jul 10, 2025
7963762
feat(nano): add check-blueprint CLI (#1315)
glevco Jul 11, 2025
bf25283
feat: add nano header to event queue events (#1314)
r4mmer Jul 14, 2025
8112ca8
tests(nano): add register_blueprint_file test method
glevco Jul 14, 2025
d57a98e
Merge pull request #1318 from HathorNetwork/tests/nano/verify-blueprint
jansegre Jul 16, 2025
c8a8ba4
feat: add config for testnet-hotel (#1322)
glevco Jul 16, 2025
37f4de5
fix(events): nano scenarios on simulator (#1325)
glevco Jul 17, 2025
9125487
feat(nano): enable nano contracts on testnet-hotel (#1323)
glevco Jul 18, 2025
1ad9231
fix(events): nano scenarios on simulator when using Docker
glevco Jul 18, 2025
2731fc5
Merge pull request #1326 from HathorNetwork/fix/nano/events-simulator
jansegre Jul 21, 2025
4935e56
fix: bug in disable history streming (#1329)
luislhl Jul 23, 2025
0faf646
test(nano): Add a test for reentrancy attack
msbrogli Jul 16, 2025
3c4b408
tests(nano): fix flaky test (#1328)
glevco Jul 23, 2025
4daccef
chore(nano): remove deprecated get_balance (#1327)
glevco Jul 24, 2025
c2e6138
fix(nano): use Uint32 for Timestamp instead of Int32
jansegre Jul 9, 2025
245c906
Merge pull request #1316 from HathorNetwork/fix/use-uint32-for-timestamp
jansegre Jul 25, 2025
23de8bf
fix(nano): incorrect lower bound in _SizedIntNCType
jansegre Jul 9, 2025
1d13b1e
Merge pull request #1317 from HathorNetwork/fix/sized-int-lower-bound
jansegre Jul 25, 2025
5c883a7
fix(nano): authority handling on indexes with contracts (#1337)
glevco Jul 29, 2025
1927f37
fix(nano): Stop sharing NanoRNG object between contracts
msbrogli Jul 22, 2025
b6c08cd
fix(nano): allow fallback-related types on OCBs (#1339)
glevco Jul 31, 2025
8849a23
tests(nano): fix usage of `raises` with match (#1341)
glevco Jul 31, 2025
eb64e24
tests: dynamically search for deep mutable properties
jansegre Jul 30, 2025
b090d0c
Merge pull request #1340 from HathorNetwork/tests/check-mutable-prope…
jansegre Aug 1, 2025
14195bb
feat(nano): block usage of more builtins (#1344)
glevco Aug 5, 2025
34e44d9
refactor(verification): move commong args to VerificationParams
jansegre Jul 15, 2025
13b193d
Merge pull request #1345 from HathorNetwork/refactor/verification-params
jansegre Aug 5, 2025
3884064
feat(nano): validate types across contracts (#1334)
glevco Aug 6, 2025
cb3772e
tests(nano): test custom import (#1346)
glevco Aug 7, 2025
0d69f48
tests(nano): add missing tests for rng immutability (#1343)
glevco Aug 7, 2025
b56e84d
chore: prepare feature-activations for release
jansegre Aug 6, 2025
c1e6a50
Merge pull request #1351 from HathorNetwork/chore/checkdatasig-featur…
jansegre Aug 7, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ coverage:
project:
default:
# minimum coverage ratio that the commit must meet to be considered a success
target: 82%
target: 85%
if_ci_failed: error
only_pulls: true

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/base_benchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- uses: ./.github/actions/setup-hathor-env
name: Setup Hathor node environment
with:
python: 3.11
python: 3.12
os: ubuntu-22.04
- name: Set env vars
run: cat ./extras/benchmarking/sync_v2/.env >> $GITHUB_ENV
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ jobs:
python-impl:
- python
python-version:
- '3.10'
- '3.11'
- '3.12'
steps:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
import os
import json
full_matrix = {
'python': ['3.10', '3.11', '3.12'],
'python': ['3.11', '3.12'],
# available OS's: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idruns-on
'os': ['ubuntu-22.04', 'macos-13'],
}
Expand Down Expand Up @@ -83,6 +83,6 @@ jobs:
run: poetry run make tests
- name: Upload coverage
uses: codecov/codecov-action@v4
if: matrix.python == 3.11 && startsWith(matrix.os, 'ubuntu')
if: matrix.python == 3.12 && startsWith(matrix.os, 'ubuntu')
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/pr_benchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- uses: ./.github/actions/setup-hathor-env
name: Setup Hathor node environment
with:
python: 3.11
python: 3.12
os: ubuntu-22.04
- name: Set env vars
run: cat ./extras/benchmarking/sync_v2/.env >> $GITHUB_ENV
Expand Down
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ __pycache__/

docs/_build/

.coverage
.coverage*
cover/
/coverage*

Expand All @@ -25,3 +25,8 @@ extras/docker/envvars

# Nix
.direnv/

keys.json

# Pycharm
.idea
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# before changing these variables, make sure the tag $PYTHON-alpine$ALPINE exists first
# before changing these variables, make sure the tag $PYTHON-slim-$DEBIAN exists first
# list of valid tags hese: https://hub.docker.com/_/python
ARG PYTHON=3.11
ARG PYTHON=3.12
ARG DEBIAN=bullseye

# stage-0: copy pyproject.toml/poetry.lock and install the production set of dependencies
FROM python:$PYTHON-slim-$DEBIAN as stage-0
FROM python:$PYTHON-slim-$DEBIAN AS stage-0
ARG PYTHON
# install runtime first deps to speedup the dev deps and because layers will be reused on stage-1
RUN apt-get -qy update
Expand Down
23 changes: 21 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ all: check tests
# testing:

tests_cli = tests/cli/
tests_nano = tests/nanocontracts/ tests/tx/test_indexes_nc_history.py tests/resources/nanocontracts/
tests_lib = $(filter-out ${tests_cli} tests/__pycache__/, $(dir $(wildcard tests/*/.)))
tests_ci = extras/github/

Expand All @@ -24,6 +25,10 @@ pytest_flags = -p no:warnings --cov-report=term --cov-report=html --cov-report=x
#--implicit-reexport
#--no-implicit-reexport

.PHONY: tests-nano
tests-nano:
pytest --durations=10 --cov-report=html --cov=hathor/nanocontracts/ --cov-config=.coveragerc_full -p no:warnings $(tests_nano)

.PHONY: tests-cli
tests-cli:
pytest --durations=10 --cov=hathor/cli/ --cov-config=.coveragerc_full --cov-fail-under=27 -p no:warnings $(tests_cli)
Expand All @@ -42,8 +47,9 @@ tests-quick:

.PHONY: tests-genesis
tests-genesis:
HATHOR_TEST_CONFIG_YAML='./hathor/conf/mainnet.yml' pytest tests/tx/test_genesis.py
HATHOR_TEST_CONFIG_YAML='./hathor/conf/testnet.yml' pytest tests/tx/test_genesis.py
HATHOR_TEST_CONFIG_YAML='./hathor/conf/mainnet.yml' pytest -n0 tests/tx/test_genesis.py
HATHOR_TEST_CONFIG_YAML='./hathor/conf/testnet.yml' pytest -n0 tests/tx/test_genesis.py
HATHOR_TEST_CONFIG_YAML='./hathor/conf/nano_testnet.yml' pytest -n0 tests/tx/test_genesis.py

.PHONY: tests-ci
tests-ci:
Expand Down Expand Up @@ -147,3 +153,16 @@ docker-push: docker
docker-push-aws: docker
docker tag $(docker_tag) 769498303037.dkr.ecr.us-east-1.amazonaws.com/fullnode:$(docker_subtag)
docker push 769498303037.dkr.ecr.us-east-1.amazonaws.com/fullnode:$(docker_subtag)

# If you get errors similar to the one below, running `make fix-rocksdb` may fix the problem.
#
# Traceback (most recent call last):
# File "<string>", line 1, in <module>
# File "/<redacted>/pypoetry/virtualenvs/hathor-29FNXj3I-py3.11/lib/python3.11/site-packages/rocksdb/__init__.py", line 1, in <module>
# from ._rocksdb import *
# ImportError: dlopen(/<redacted>/pypoetry/virtualenvs/hathor-29FNXj3I-py3.11/lib/python3.11/site-packages/rocksdb/_rocksdb.cpython-311-darwin.so, 0x0002): Library not loaded: /opt/homebrew/opt/rocksdb/lib/librocksdb.9.dylib
# Referenced from: /<redacted>/pypoetry/virtualenvs/hathor-29FNXj3I-py3.11/lib/python3.11/site-packages/rocksdb/_rocksdb.cpython-311-darwin.so
# Reason: tried: '/opt/homebrew/opt/rocksdb/lib/librocksdb.9.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/opt/rocksdb/lib/librocksdb.9.dylib' (no such file), '/opt/homebrew/opt/rocksdb/lib/librocksdb.9.dylib' (no such file), '/opt/homebrew/Cellar/rocksdb/10.0.1/lib/librocksdb.9.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/Cellar/rocksdb/10.0.1/lib/librocksdb.9.dylib' (no such file), '/opt/homebrew/Cellar/rocksdb/10.0.1/lib/librocksdb.9.dylib' (no such file)
.PHONY: fix-rocksdb
fix-rocksdb:
poetry run pip uninstall -y rocksdb && poetry run pip install --no-binary :all: git+https://github.com/hathornetwork/python-rocksdb.git
14 changes: 6 additions & 8 deletions docs/event-queue-feature.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,19 @@ To enable the Event Queue feature, you must add this CLI option when running the
For example:

```bash
poetry run hathor-cli run_node --memory-storage --status 8080 --testnet --enable-event-queue
poetry run hathor-cli run_node --temp-data --status 8080 --testnet --enable-event-queue
```

### First run

If this is the first time your full node is running with the event queue enabled, there are 3 possibilities:
If this is the first time your full node is running with the event queue enabled, there are 2 possibilities:

1. You're running the full node using memory storage, like in the example above;
2. You're running the full node using RocksDB storage (the default option), and
1. You're performing a sync from scratch, that is, you don't have an existing database, or
2. You're running from an existing database.
1. You're performing a sync from scratch or you're using a temporary database (like in the example above), that is, you don't have an existing database, or
2. You're running from an existing database.

For cases 1 and 2.1, the full node will start normally, events will be generated in real time while vertices are synced, and they'll be sent to the WebSocket connection accordingly, as explained below.
For case 1, the full node will start normally, events will be generated in real time while vertices are synced and they'll be sent to the WebSocket connection accordingly, as explained below.

For case 2.2, an extra loading step will be performed during full node initialization, generating events for all existing vertices in your database. This step is slower than normal full node initialization and can take several minutes. Note that this will only be necessary once — after initialization, the events generated for your database are persisted and will be used in subsequent runs.
For case 2, an extra loading step will be performed during full node initialization, generating events for all existing vertices in your database. This step is slower than normal full node initialization and can take several minutes. Note that this will only be necessary once — after initialization, the events generated for your database are persisted and will be used in subsequent runs.

### Subsequent runs when using RocksDB

Expand Down
4 changes: 3 additions & 1 deletion extras/custom_checks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ function check_do_not_use_builtin_random_in_tests() {
hathor/merged_mining/debug_api.py
hathor/client.py
hathor/cli/tx_generator.py
tests/test_utils/test_leb128.py
)
exclude_params=()
for item in "${exclude[@]}"; do
Expand All @@ -81,9 +82,10 @@ function check_deprecated_typing() {
}

function check_do_not_import_tests_in_hathor() {
if grep -R '\<.*import .*tests.*\>\|\<.*from .*tests.* import\>' "hathor"; then
if grep -R '\<.*import .*tests.*\>\|\<.*from .*tests.* import\>' "hathor" | grep -v '# skip-import-tests-custom-check'; then
echo 'do not import test definitions in the hathor module'
echo 'move them from tests to hathor instead'
echo 'alternatively, comment `# skip-import-tests-custom-check` to exclude a line.'
return 1
fi
return 0
Expand Down
4 changes: 2 additions & 2 deletions extras/custom_tests/side_dag/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@
python -m hathor run_node_with_side_dag
--disable-logs
--testnet
--memory-storage
--temp-data
--x-localhost-only
--procname-prefix {HATHOR_PROCESS_PREFIX}
--side-dag-testnet
--side-dag-memory-storage
--side-dag-temp-data
--side-dag-x-localhost-only
--side-dag-procname-prefix {SIDE_DAG_PROCESS_PREFIX}
"""
Expand Down
20 changes: 10 additions & 10 deletions extras/github/docker.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def prep_base_version(environ: Dict):
ref = GITHUB_REF

# Set base_version according to the github ref type
is_release_candidate = False
is_pre_release = False
is_release = False
is_nightly = False

Expand All @@ -42,9 +42,9 @@ def prep_base_version(environ: Dict):

# Check if this is a release-candidate
if pre_release:
if re.match(r'^rc\.[0-9]{1,3}$', pre_release):
if re.match(r'^(rc|alpha|beta)\.[0-9]{1,3}$', pre_release):
base_version = base_version + '-' + pre_release
is_release_candidate = True
is_pre_release = True
else:
raise ValueError(f'Invalid Tag Value: {git_tag}')
else:
Expand All @@ -58,18 +58,18 @@ def prep_base_version(environ: Dict):
else:
base_version = 'noop'

overwrite_hathor_core_version = is_release or is_release_candidate or is_nightly
overwrite_hathor_core_version = is_release or is_pre_release or is_nightly
# We don't know for sure at this point in which cases we should enable Slack notification,
# but we know when we should disable it for sure
output['disable-slack-notification'] = not (is_release or is_release_candidate)
output['disable-slack-notification'] = not (is_release or is_pre_release)

if GITHUB_REPOSITORY.lower() != 'hathornetwork/hathor-core':
output['disable-slack-notification'] = True

return output, base_version, is_release_candidate, overwrite_hathor_core_version
return output, base_version, is_pre_release, overwrite_hathor_core_version


def prep_tags(environ: Dict, base_version: str, is_release_candidate: bool):
def prep_tags(environ: Dict, base_version: str, is_pre_release: bool):
MATRIX_PYTHON_IMPL = environ.get('MATRIX_PYTHON_IMPL')
MATRIX_PYTHON_VERSION = environ.get('MATRIX_PYTHON_VERSION')

Expand Down Expand Up @@ -111,7 +111,7 @@ def extract_pyver(filename):
tags.add(minor + '-' + suffix)
if suffix == default_python:
tags.add('latest')
elif GITHUB_EVENT_NAME == 'push' and not is_release_candidate:
elif GITHUB_EVENT_NAME == 'push' and not is_pre_release:
tags.add('sha-' + GITHUB_SHA[:8])

# Build the image list and set outputs
Expand Down Expand Up @@ -150,10 +150,10 @@ def overwrite_version(base_version: str):


if __name__ == '__main__':
output, base_version, is_release_candidate, overwrite_hathor_core_version = prep_base_version(os.environ)
output, base_version, is_pre_release, overwrite_hathor_core_version = prep_base_version(os.environ)
print_output(output)

output = prep_tags(os.environ, base_version, is_release_candidate)
output = prep_tags(os.environ, base_version, is_pre_release)
print_output(output)

if overwrite_hathor_core_version:
Expand Down
4 changes: 2 additions & 2 deletions extras/github/test_docker.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

from extras.github.docker import prep_base_version, prep_tags

DEFAULT_PYTHON_VERSION = '3.11'
NON_DEFAULT_PYTHON_VERSION = '3.10'
DEFAULT_PYTHON_VERSION = '3.12'
NON_DEFAULT_PYTHON_VERSION = '3.11'


class DockerWorkflowTest(unittest.TestCase):
Expand Down
4 changes: 2 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
in
pkgs.mkShell {
buildInputs = [
pkgs.python310
pkgs.python312
pkgs.poetry
pkgs.rocksdb
pkgs.snappy
Expand All @@ -33,7 +33,7 @@
shellHook = ''
export CFLAGS="-I${pkgs.rocksdb}/include"
export LDFLAGS="-L${pkgs.rocksdb}/lib"
poetry env use python3.10
poetry env use python3.12
'';
};
});
Expand Down
Loading