Skip to content

Commit

Permalink
fix: update postage amount to reflect min value
Browse files Browse the repository at this point in the history
  • Loading branch information
Cafe137 committed Jun 3, 2024
1 parent ab75940 commit 4580de3
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 9 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ npm run start

```sh
export POSTAGE_DEPTH=20
export POSTAGE_AMOUNT=1000000
export POSTAGE_AMOUNT=414720000
export POSTAGE_TTL_MIN=60

npm run start
Expand All @@ -106,7 +106,7 @@ npm run start
export POSTAGE_EXTENDSTTL=true
export POSTAGE_TTL_MIN=60
export POSTAGE_DEPTH=20
export POSTAGE_AMOUNT=1000000
export POSTAGE_AMOUNT=414720000

npm run start
```
Expand Down
4 changes: 1 addition & 3 deletions dev/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ services:
- PORT=4000
- BEE_API_URL=http://swarm-test-queen:1633 # http://bee:1633 for bee dev
- POSTAGE_DEPTH=19
- POSTAGE_AMOUNT=100000
- POSTAGE_AMOUNT=414720000
- POSTAGE_USAGE_THRESHOLD=0.49
- POSTAGE_USAGE_MAX=0.74
- POSTAGE_TTL_MIN=-2 # this is a hack to work with bee dev and bee-factory, see https://github.com/ethersphere/bee-factory/issues/74
Expand All @@ -68,9 +68,7 @@ services:
# command: dev
# ports:
# - 1633:1633
# - 1635:1635
# expose:
# - 1633
# - 1635
# networks:
# - swarm-test-network
4 changes: 2 additions & 2 deletions test/config.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ describe('getServerConfig', () => {

describe('getStampsConfig', () => {
const POSTAGE_STAMP = 'f1e4ff753ea1cb923269ed0cda909d13a10d624719edf261e196584e9e764e50'
const POSTAGE_AMOUNT = '100'
const POSTAGE_AMOUNT = '414720000'
const POSTAGE_DEPTH = '20'
const BEE_API_URL = 'http://localhost:1635'
const BEE_API_URL = 'http://localhost:1633'
const POSTAGE_USAGE_THRESHOLD = '0.6'
const POSTAGE_USAGE_MAX = '0.8'
const POSTAGE_TTL_MIN = '200'
Expand Down
2 changes: 1 addition & 1 deletion test/stamps.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ afterEach(() => {
db.clear()
})

const defaultAmount = '1000000'
const defaultAmount = '414720000'
const defaultDepth = 20
const defaultTTL = Number(defaultAmount)
const defaultStamp: PostageBatch = {
Expand Down
2 changes: 1 addition & 1 deletion test/tests-setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default async function testsSetup(): Promise<void> {
stampsOrder.push({ env: 'BEE_POSTAGE' })
}

const stamps = await Promise.all(stampsOrder.map(async () => bee.createPostageBatch('1000', 20)))
const stamps = await Promise.all(stampsOrder.map(async () => bee.createPostageBatch('414720000', 20)))

for (let i = 0; i < stamps.length; i++) {
process.env[stampsOrder[i].env] = stamps[i]
Expand Down

0 comments on commit 4580de3

Please sign in to comment.