git.delta.rocks / unique-network / refs/commits / 2286a2234aea

difftreelog

Merge pull request #1028 from UniqueNetwork/ci/node-only-fix

Yaroslav Bolyukin2023-10-25parents: #bdb29fd #fcc1568.patch.diff
in: master
Fix bdk failure on node-only

2 files changed

modified.github/workflows/node-only-update.ymldiffbeforeafterboth
187 if: success() || failure()187 if: success() || failure()
188 uses: UniqueNetwork/baedeker-action/reconcile@built188 uses: UniqueNetwork/baedeker-action/reconcile@built
189 with:189 with:
190 baedeker: ${{ steps.bdk.baedeker }}190 baedeker: ${{ steps.bdk.outputs.baedeker }}
191 # Chain should always be built with the mainnet spec, this we first set binary for all nodes expect one, then set mainnet binary for the last node, and then force chainspec to be still generated from mainnet191 # Chain should always be built with the mainnet spec, this we first set binary for all nodes expect one, then set mainnet binary for the last node, and then force chainspec to be still generated from mainnet
192 inputs: |192 inputs: |
193 snippet:(import 'baedeker-library/ops/rewrites.libsonnet').rewriteNodePaths({'bin/unique':{dockerImage:'${{ steps.latest.outputs.name }}'}}, leave = 1, for_chain = false)193 snippet:(import 'baedeker-library/ops/rewrites.libsonnet').rewriteNodePaths({'bin/unique':{dockerImage:'${{ steps.latest.outputs.name }}'}}, leave = 1, for_chain = false)
205 if: success() || failure()205 if: success() || failure()
206 uses: UniqueNetwork/baedeker-action/reconcile@built206 uses: UniqueNetwork/baedeker-action/reconcile@built
207 with:207 with:
208 baedeker: ${{ steps.bdk.baedeker }}208 baedeker: ${{ steps.bdk.outputs.baedeker }}
209 # Chain should always be built with the mainnet spec, this we first set binary for all nodes, and then force chainspec to be still generated from mainnet209 # Chain should always be built with the mainnet spec, this we first set binary for all nodes, and then force chainspec to be still generated from mainnet
210 inputs: |210 inputs: |
211 snippet:(import 'baedeker-library/ops/rewrites.libsonnet').rewriteNodePaths({'bin/unique':{dockerImage:'${{ steps.latest.outputs.name }}'}}, for_chain = false)211 snippet:(import 'baedeker-library/ops/rewrites.libsonnet').rewriteNodePaths({'bin/unique':{dockerImage:'${{ steps.latest.outputs.name }}'}}, for_chain = false)
modifiedruntime/common/config/pallets/mod.rsdiffbeforeafterboth
112112
113 fn current_block_number() -> Self::BlockNumber {113 fn current_block_number() -> Self::BlockNumber {
114 // This code was broken previously, but after fixing, we decided it would be better to leave it broken for now.114 // This code was broken previously, but after fixing, we decided it would be better to leave it broken for now.
115 0u32.into()115 0
116 // use hex_literal::hex;116 // use hex_literal::hex;
117 // use parity_scale_codec::Decode;117 // use parity_scale_codec::Decode;
118 // use sp_io::storage;118 // use sp_io::storage;