Skip to content

Commit

Permalink
Merge branch 'main' into PAN-2261-2262-polygon-pos-and-sonic-support
Browse files Browse the repository at this point in the history
  • Loading branch information
markuslevonyak committed Oct 18, 2024
2 parents 7662dfb + f3b1a7a commit dbd1e77
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.10"]
python-version: ["3.12"]
architecture: ["amd64"]
steps:
- name: Harden Runner
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@ jobs:
uses: actions/cache@v4
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-v1.0-service-node-${{ matrix.arch}}-${{ github.ref_name }}
key: ${{ runner.os }}-buildx-v1.0-service-node-${{ matrix.arch }}-${{ github.ref_name }}
restore-keys: |
${{ runner.os }}-buildx-v1.0-service-node-${{ matrix.arch}}-
${{ runner.os }}-buildx-v1.0-service-node-${{ matrix.arch }}-
- name: Check docker config and disable live reload
run: |
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/publish-docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ jobs:
uses: actions/cache@v4
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-v1.0-service-node-${{ github.sha }}
key: ${{ runner.os }}-to-publish-service-node-${{ matrix.arch }}-${{ github.ref_name }}
restore-keys: |
${{ runner.os }}-buildx-v1.0-service-node-
${{ runner.os }}-to-publish-service-node-${{ matrix.arch }}-
- uses: actions/download-artifact@v4
with:
Expand Down Expand Up @@ -89,7 +89,7 @@ jobs:
docker buildx bake \
--set "*.cache-from=type=local,src=/tmp/.buildx-cache" \
--set "*.cache-to=type=local,dest=/tmp/.buildx-cache-new" \
--set "*.platform=linux/amd64,linux/arm64" \
--set "*.platform=linux/amd64" \
--builder ${{ steps.buildx.outputs.name }} \
--sbom=true \
--push \
Expand Down
8 changes: 4 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,10 @@ services:
target: /opt/pantos/pantos-service-node/alembic.ini
- action: sync+restart
path: service-node-config.env
target: /root/service-node-config.env
target: /etc/pantos/service-node-config.env
- action: sync+restart
path: bids.yml
target: /etc/service-node-bids.yml
target: /etc/pantos/service-node-bids.yml
- action: rebuild
path: Dockerfile
- action: rebuild
Expand Down Expand Up @@ -141,10 +141,10 @@ services:
target: /opt/pantos/pantos-service-node/alembic.ini
- action: sync+restart
path: service-node-config.env
target: /root/service-node-config.env
target: /etc/pantos/service-node-config.env
- action: sync+restart
path: bids.yml
target: /etc/service-node-bids.yml
target: /etc/pantos/service-node-bids.yml
- action: rebuild
path: Dockerfile
- action: rebuild
Expand Down
5 changes: 3 additions & 2 deletions pantos/servicenode/business/plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,9 @@ def replace_bids(self, source_blockchain: Blockchain) -> int:
bids, delay = bid_plugin.get_bids(source_blockchain.value,
destination_blockchain.value,
**bids_arguments)
self.__add_validator_fee(bids, source_blockchain_factor,
destination_blockchain_factor)
if source_blockchain is not destination_blockchain:
self.__add_validator_fee(bids, source_blockchain_factor,
destination_blockchain_factor)
_logger.debug(f'Saving {len(bids)} bids in database')
bids = [dataclasses.asdict(bid) for bid in bids]
replace_bids(source_blockchain.value,
Expand Down
16 changes: 8 additions & 8 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Cerberus = "1.3.4"
Flask = "3.0.3"
Flask-Cors = "5.0.0"
Flask-RESTful = "0.3.10"
marshmallow = "3.22.0"
marshmallow = "3.23.0"
psycopg2-binary = "2.9.10"
PyYAML = "6.0.1"
SQLAlchemy = "2.0.36"
Expand Down

0 comments on commit dbd1e77

Please sign in to comment.