Skip to content

Commit

Permalink
feat: upgrade to bee 1.17.3 (#377)
Browse files Browse the repository at this point in the history
  • Loading branch information
Cafe137 authored Aug 31, 2023
1 parent acc45f3 commit 4ea9d79
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/downloader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export async function runDownloader(force = false): Promise<void> {
}
await ensureDir(paths.data)
await ensureAsset(
`https://github.com/ethersphere/bee/releases/download/v1.17.2/bee-${platformString}-${archString}${suffixString}`,
`https://github.com/ethersphere/bee/releases/download/v1.17.3/bee-${platformString}-${archString}${suffixString}`,
`bee${suffixString}`,
{ chmod: process.platform !== 'win32', force },
)
Expand Down
2 changes: 1 addition & 1 deletion src/launcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ swap-enable: false
mainnet: true
full-node: false
cors-allowed-origins: '*'
use-postage-snapshot: true
use-postage-snapshot: false
resolver-options: https://cloudflare-eth.com
data-dir: ${getPath('data-dir')}
password: ${v4()}
Expand Down
11 changes: 4 additions & 7 deletions src/migration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,6 @@ export function runMigrations() {

const config = readConfigYaml()

// TODO: remove this after 1.0.0 release
// this is a migration path for pioneers
// who helped testing the early versions
if (!config.password) {
writeConfigYaml({ password: 'Test' })
}

if (config['storage-incentives-enable'] === undefined) {
writeConfigYaml({ 'storage-incentives-enable': false })
}
Expand All @@ -33,4 +26,8 @@ export function runMigrations() {
if (config.transaction !== undefined) {
deleteKeyFromConfigYaml('transaction')
}

if (config['use-postage-snapshot'] !== false && config['use-postage-snapshot'] !== 'false') {
writeConfigYaml({ 'use-postage-snapshot': false })
}
}

0 comments on commit 4ea9d79

Please sign in to comment.