Skip to content

Commit 4d574fc

Browse files
authored
Merge pull request #1243 from permaweb/jfrain99/is-wallet-fix
fix(cu): model moved to mu
2 parents b9ca373 + 90cd78c commit 4d574fc

File tree

3 files changed

+4
-16
lines changed

3 files changed

+4
-16
lines changed

servers/cu/README.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,9 +149,6 @@ There are a few environment variables that you can set. Besides
149149
to be retrieved from the dryrun cache.
150150
- `DRY_RUN_PROCESS_CACHE_TTL`: the TTL of the dryrun process memory cache.
151151
If a eval stream is more nonces behind than this limit, a 503 is returned.
152-
- `SU_ROUTER_URL`: the SU router url to default to when checking if target is a wallet
153-
- `HB_ROUTER_URL`: the HB router url to default to when checking if target is a wallet
154-
- `ENABLE_HB_WALLET_CHECK`: whether to enable HB wallet check when checking if target is a wallet
155152

156153
## Tests
157154

servers/cu/src/domain/model.js

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -262,19 +262,7 @@ export const domainConfigSchema = z.object({
262262
/**
263263
* The TTL of the dry run process cache in milliseconds.
264264
*/
265-
DRY_RUN_PROCESS_CACHE_TTL: positiveIntSchema,
266-
/**
267-
* The SU router url to default to when checking if target is a wallet
268-
*/
269-
SU_ROUTER_URL: z.string(),
270-
/**
271-
* The HB router url to default to when checking if target is a wallet
272-
*/
273-
HB_ROUTER_URL: z.string(),
274-
/**
275-
* Whether to enable HB wallet check when checking if target is a wallet
276-
*/
277-
ENABLE_HB_WALLET_CHECK: z.boolean()
265+
DRY_RUN_PROCESS_CACHE_TTL: positiveIntSchema
278266
})
279267

280268
export const bufferSchema = z.any().refine(buffer => {

servers/mu/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ There are a few environment variables that you can set:
5858
- `CUSTOM_CU_MAP_FILE_PATH`: The file path for the custom CU JSON map for message pushing.
5959
- `IP_WALLET_RATE_LIMIT`: The amount of requests from an IP-wallet pair to allow in an interval (defaults to 100)
6060
- `IP_WALLET_RATE_LIMIT_INTERVAL`: The interval to allow the rate limit in (defaults to 1h)
61+
- `SU_ROUTER_URL`: the SU router url to default to when checking if target is a wallet
62+
- `HB_ROUTER_URL`: the HB router url to default to when checking if target is a wallet
63+
- `ENABLE_HB_WALLET_CHECK`: whether to enable HB wallet check when checking if target is a wallet
6164

6265

6366

0 commit comments

Comments
 (0)