From ed9bc1c39594bfd18a7b419add650930b3feee3c Mon Sep 17 00:00:00 2001 From: Alex Vanin Date: Mon, 30 Oct 2023 18:00:07 +0300 Subject: [PATCH] [#29] Enable HTTPS oracle in chain Signed-off-by: Alex Vanin --- .env | 2 +- Makefile | 11 +++++++++++ morph/protocol.privnet.yml | 7 +++++++ 3 files changed, 19 insertions(+), 1 deletion(-) diff --git a/.env b/.env index 134c41b..56f0abc 100644 --- a/.env +++ b/.env @@ -1,3 +1,3 @@ FROSTFS_HUB_IMAGE=truecloudlab/frostfs AIO_IMAGE=truecloudlab/frostfs-aio -AIO_VERSION=1.2.8 +AIO_VERSION=1.2.9 diff --git a/Makefile b/Makefile index b1c3e5a..ef1d3c0 100644 --- a/Makefile +++ b/Makefile @@ -88,6 +88,17 @@ s3cred-custom: --container-placement-policy "REP 1" \ --bearer-rules $(S3_BEARER_RULES) +enable-oracle: + @docker exec aio neo-go contract invokefunction -r http://localhost:30333 \ + --wallet-config /config/node-config.yaml \ + --out /config/tx.json 49cf4e5378ffcd4dec034fd98a174c5491e395e2 designateAsRole \ + int:8 [ bytes:02b3622bf4017bdfe317c58aed5f4c753f206b7db896046fa7d774bbc4bf7f8dc2 ] \ + -- NfgHwwTi3wHAS8aFAN243C5vGbkYDpqLHP + @docker exec aio neo-go wallet sign --in /config/tx.json \ + -r http://localhost:30333 \ + --wallet-config /config/node-config.yaml \ + -a NfgHwwTi3wHAS8aFAN243C5vGbkYDpqLHP + # Tick new epoch in side chain tick.epoch: @docker exec aio /usr/bin/frostfs-adm --config /config/frostfs-adm.yml morph force-new-epoch diff --git a/morph/protocol.privnet.yml b/morph/protocol.privnet.yml index 6204984..aac5b3d 100644 --- a/morph/protocol.privnet.yml +++ b/morph/protocol.privnet.yml @@ -52,3 +52,10 @@ ApplicationConfiguration: UnlockWallet: Path: "/config/node-wallet.json" Password: "one" + Oracle: + Enabled: true + Nodes: + - http://127.0.0.1:30333 + UnlockWallet: + Path: "/config/node-wallet.json" + Password: "one"