Commit Graph

64 Commits

Author SHA1 Message Date
onledger.net
0f235d30d8 Add guard for empty disparate_dir in sync_instance
## Change

Add a guard to the `disparate_dir` cleanup in `sync_instance` to 
prevent accidental deletion of the contract state directory when 
`DISPARATE_DIR` is not set.

## Background

The `disparate` directory feature was introduced in the beta devkit 
image to support multisig deployments. The cluster script assumes 
`DISPARATE_DIR` is always set, however older NPM packages (below 
v0.6.8) do not pass this environment variable, leaving `$disparate_dir` 
as an empty string.

With an empty `$disparate_dir` this line:
```bash
[ -d $contract_dir/contract_fs/seed/state/$disparate_dir ] && rm -r $contract_dir/contract_fs/seed/state/$disparate_dir
```

Evaluates to:
```bash
[ -d $contract_dir/contract_fs/seed/state/ ] && rm -r $contract_dir/contract_fs/seed/state/
```

Deleting the entire state directory immediately after the contract 
bundle is copied in.

## Change

Add a guard so the deletion only runs when `$disparate_dir` is 
actually set:
```bash
# Before
[ -d $contract_dir/contract_fs/seed/state/$disparate_dir ] && rm -r $contract_dir/contract_fs/seed/state/$disparate_dir

# After
[ -n "$disparate_dir" ] && [ -d $contract_dir/contract_fs/seed/state/$disparate_dir ] && rm -r $contract_dir/contract_fs/seed/state/$disparate_dir
```

## Notes

- NPM v0.6.8 correctly passes `DISPARATE_DIR=disparate` and is 
required for full beta devkit compatibility
- This guard is defensive programming to protect against the state 
directory being accidentally deleted if an older NPM package is used 
with the beta image
- For non-multisig deployments the disparate directory cleanup is 
skipped entirely which is the correct behaviour
2026-03-31 23:04:32 +13:00
onledger.net
dc49d19001 Merge pull request #39 from EvernodeXRPL/fix/sync-bundle-copy
Fix sync_instance bundle copy — use /. to copy contents not directory
2026-03-31 11:38:56 +13:00
onledger.net
8805324c0c Fix sync_instance bundle copy — use /. to copy contents not directory 2026-03-30 13:38:46 +13:00
RichardAH
af5a65b871 Merge pull request #37 from EvernodeXRPL/rippleitinnz-roundtime-setting-cfg-bug
Bug fix in cfg settings
2026-02-16 11:44:16 +10:00
RichardAH
d39ba5bab1 Merge pull request #38 from EvernodeXRPL/docker-update
Update Docker CLI to 27.5.1 for compatibility with Docker Engine 29.x
2026-02-16 11:43:34 +10:00
Dulana Peiris
2a2f818d8e Update Docker CLI to 27.5.1 for compatibility with Docker Engine 29.x 2026-01-14 15:26:16 +05:30
onledger.net
14d18d3258 Update cluster.sh
The bind_mesh function is hardcoding contract.roundtime=2000 (2 seconds) into the configuration incorrectly causing a duplicate roundtime setting in the default of 1000 irrespective of what contract.roundtime=2000 or what the hp.cfg.override is set to.

It should be setting this to contract.consensus.roundtime

```
cat /var/lib/docker/volumes/hpdevkit_default_vol/_data/node1/cfg/hp.cfg | grep -A10 -B5 roundtime
    "bin_args": "index.js",
    "environment": {},
    "max_input_ledger_offset": 10,
    "consensus": {
      "mode": "public",
      "roundtime": 1000,   <--------
      "stage_slice": 25,
      "threshold": 80
    },
    "npl": {
      "mode": "private"
    },
    "round_limits": {
      "user_input_bytes": 0,
      "user_output_bytes": 0,
      "npl_output_bytes": 0,
      "proc_cpu_seconds": 0,
      "proc_mem_bytes": 0,
      "proc_ofd_count": 0,
      "exec_timeout": 300000
    },
    "roundtime": 2000   <-------
  },
  "mesh": {
    "port": 22861,
    "listen": true,
    "idle_timeout": 120000,
    "known_peers": [
      "node2:22862",
      "node3:22863"
    ],
    "msg_forwarding": true,
```
2025-06-28 11:35:51 +12:00
Kithmini Gunawardhana
4e87ee11f5 Signer info saving command modification (#36) 2024-04-03 09:31:35 +05:30
Dulana Peiris
670b280745 Code template build script update (#35) 2024-04-02 13:40:45 +05:30
Dulana Peiris
ec3dbf865a Added program name (#34) 2024-03-27 11:06:06 +05:30
Chalith Desaman
e5446d2f99 Added force terminate to the multisig template (#33) 2024-03-15 17:59:11 +05:30
Chalith Desaman
1face50d32 Added new contract templates (#31) 2024-03-15 17:16:24 +05:30
chalith
5838ea7fcc Updated license 2024-01-12 11:04:16 +05:30
Chalith Desaman
d74e7c70b8 Updated docker image repositories (#29) 2023-12-15 18:14:57 +05:30
Dulana Peiris
a7cb57ff13 Added License file to Docker and NPM build (#28) 2023-12-15 17:28:05 +05:30
chalith
92a9c1a53a Updated the npm version 2023-12-08 17:44:37 +05:30
chalith
e60c31176e Changed the content 2023-12-08 15:03:46 +05:30
Chalith Desaman
c6640bbdb9 Updated default docker image and package versions (#27) 2023-10-24 13:40:06 +05:30
Chalith Desaman
4a14700e02 Updated default hp docker image version for contract timeout support (#26) 2023-08-03 17:26:46 +05:30
Chalith Desaman
bde1c54e29 Updated the latest hp docker image (#25) 2023-07-21 16:31:19 +05:30
Chalith Desaman
17b68b2037 Updated default hotpocket docker image (#24) 2023-07-05 13:22:11 +05:30
ravinsp
a119d6ee47 Fixed port assignment issue with spawn command. 2023-05-27 06:23:24 +05:30
Kithmini Gunawardhana
75d4be6c5b Updated HotPocket Image (#23) 2023-05-12 10:09:44 +05:30
ravinsp
f488153841 Cleanup. 2023-05-06 19:53:27 +05:30
Chalith Desaman
151596b2b3 Added eslint and publish only build files to npm (#22) 2023-05-03 15:46:40 +05:30
Ravin Perera
857d15d2be Spawn and Status commands with refactoring. (#21) 2023-05-03 15:25:18 +05:30
Chalith Desaman
2f43dd0970 Restart the deployment cluster when machine restarts (#20) 2022-11-22 10:35:56 +05:30
Udith Indrakantha
08a8432e2a Bug fixes (#19) 2022-11-16 16:32:15 +05:30
Udith Indrakantha
d60bc7989e Resolved bug in hpdevkit clean command. (#18) 2022-11-16 12:24:15 +05:30
Udith Indrakantha
01ff8a3c59 Updating docker image tags with version number (#17) 2022-11-16 11:40:09 +05:30
Chalith Desaman
e9d8f7dbb1 Updated npm version (#16) 2022-10-25 10:39:33 +05:30
ravinsp
8f65f715f9 Updated nodejs contract lib. 2022-10-22 21:07:05 +05:30
Kasun Kavinda
4fd40cd304 Merge pull request #15 from HotPocketDev/upgrade
Changed environment config format in HotPocket
2022-10-19 21:46:49 -07:00
chalith
acb0cdd3f4 Changed config file format 2022-10-17 15:37:39 +05:30
Kithmini Gunawardhana
da902c2ead Added the starter client template (#14) 2022-10-11 12:18:56 +05:30
Kithmini Gunawardhana
f2d1ceac8b Output message modification in bundle command. (#13) 2022-09-29 19:45:01 +05:30
Chalith Desaman
744b806e49 Included starter client template for bootsrap contact (#11) 2022-09-29 15:03:09 +05:30
Kithmini Gunawardhana
1fecee395d Contract bundle preparation option in hpdevkit (#12) 2022-09-29 10:41:13 +05:30
Chalith Desaman
50864085d9 Cross platform support by migrating to npm (#10) 2022-09-19 11:09:50 +05:30
Chalith Desaman
3362c60fe7 Port validation and avoid parallel image pulling (#8) 2022-09-07 08:47:26 +05:30
Kithmini Gunawardhana
7e6554b232 Add Restart Policy to hpdevkit container (#7) 2022-09-06 09:17:37 +05:30
Chalith Desaman
bd84875d04 Introduce starting port number env variable (#6) 2022-09-06 09:16:28 +05:30
Chalith Desaman
99a7754ee3 Changed default cluster size to 3 (#5) 2022-08-31 11:46:24 +05:30
Udith Indrakantha
fc7f56716e Bash launcher with update functionality. (#4) 2022-08-26 18:48:59 +05:30
Kithmini Gunawardhana
ada602cfff Hpdevkit "update" feature was added in windows platform. (#3) 2022-08-26 17:23:36 +05:30
Udith Indrakantha
5b6bf10fdc Added bash script to launch the hp-devkit in linux (#2) 2022-08-26 13:43:14 +05:30
ravinsp
b2996fbcea Client app sample. 2022-08-21 19:36:29 +05:30
ravinsp
7e2ec90542 Blank contract. 2022-08-21 15:47:49 +05:30
ravinsp
e282484c60 Wording changes. 2022-08-12 11:40:08 +05:30
ravinsp
7d9dda7971 Updated nodejs contract lib version. 2022-07-14 21:06:12 +05:30