From 03b73b85bf671bd29a474f815a301dad334b4c09 Mon Sep 17 00:00:00 2001 From: fang Date: Mon, 24 Jan 2022 23:06:06 +0100 Subject: [PATCH] fine: set and handle the response bit correctly --- pkg/arvo/sys/vane/fine.hoon | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/pkg/arvo/sys/vane/fine.hoon b/pkg/arvo/sys/vane/fine.hoon index 1849fd90c..63898675b 100644 --- a/pkg/arvo/sys/vane/fine.hoon +++ b/pkg/arvo/sys/vane/fine.hoon @@ -102,8 +102,9 @@ |= [=path num=@ud] ^- hoot ^- @ =+ bod=(request-body path num) - =+ con=(can 3 64^(sign:keys dat.bod) bod ~) - (encode-packet [our ~zod] (mod life:keys 16) 0b0 ~ con) + =+ syn=(can 3 64^(sign:keys dat.bod) bod ~) + %+ con 0b100 ::NOTE request bit + (encode-packet [our ~zod] (mod life:keys 16) 0b0 ~ syn) :: ++ encode-response |= [=path data=(unit (cask))] @@ -338,8 +339,8 @@ %purr ^- (quip move _state) =/ =packet:ames (decode-packet `@ux`purr.task) - =/ req=? =(& (cut 0 [2 1] purr.task)) - ?: req + =/ resp=? =(& (cut 0 [2 1] purr.task)) + ?. resp ::TODO crash instead, scry/peek should be used for this =/ =twit (decode-request `@ux`content.packet) ::TODO verify request signature