From b6dcf65ea3952d3140044ad0dbe99f37f1ebd84d Mon Sep 17 00:00:00 2001 From: alfred-mk Date: Mon, 19 May 2025 02:24:42 +0300 Subject: [PATCH] add a catch fow when the active voucher is not in the default pool --- services/registration/missing_voucher | 1 + services/registration/missing_voucher.vis | 6 ++++++ services/registration/missing_voucher_swa | 1 + services/registration/swap_to_list.vis | 2 +- 4 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 services/registration/missing_voucher create mode 100644 services/registration/missing_voucher.vis create mode 100644 services/registration/missing_voucher_swa diff --git a/services/registration/missing_voucher b/services/registration/missing_voucher new file mode 100644 index 0000000..8b67f26 --- /dev/null +++ b/services/registration/missing_voucher @@ -0,0 +1 @@ +{{.swap_to_list}} \ No newline at end of file diff --git a/services/registration/missing_voucher.vis b/services/registration/missing_voucher.vis new file mode 100644 index 0000000..cf01c5b --- /dev/null +++ b/services/registration/missing_voucher.vis @@ -0,0 +1,6 @@ +MAP swap_to_list +MOUT back 0 +MOUT quit 9 +HALT +INCMP ^ 0 +INCMP quit 9 diff --git a/services/registration/missing_voucher_swa b/services/registration/missing_voucher_swa new file mode 100644 index 0000000..8b67f26 --- /dev/null +++ b/services/registration/missing_voucher_swa @@ -0,0 +1 @@ +{{.swap_to_list}} \ No newline at end of file diff --git a/services/registration/swap_to_list.vis b/services/registration/swap_to_list.vis index de1836e..2cb9fc4 100644 --- a/services/registration/swap_to_list.vis +++ b/services/registration/swap_to_list.vis @@ -1,6 +1,6 @@ LOAD swap_to_list 0 -CATCH _ flag_incorrect_voucher 1 MAP swap_to_list +CATCH missing_voucher flag_incorrect_voucher 1 MOUT back 0 HALT LOAD swap_max_limit 64