From 53eba92e595efec6575fb6b1a3fb071d354dc7f5 Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 19 Sep 2016 17:40:13 -0300 Subject: [PATCH] test --- basilisk/basilisk_MSG.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/basilisk/basilisk_MSG.c b/basilisk/basilisk_MSG.c index 10413d47e..3215d813c 100755 --- a/basilisk/basilisk_MSG.c +++ b/basilisk/basilisk_MSG.c @@ -130,8 +130,8 @@ int32_t basilisk_msgcmp(struct basilisk_message *msg,int32_t width,uint32_t chan { if ( bits256_nonz(desthash) == 0 || bits256_cmp(desthash,keydest) == 0 ) { - printf("key.(%u %u) channel.%u msgid.%u width.%d\n",keychannel,keymsgid,channel,msgid,width); - if ( keymsgid >= msgid && keymsgid+width <= msgid && keychannel == channel ) + printf("key.(%u %u) channel.%u msgid.%u width.%d match.%d\n",keychannel,keymsgid,channel,msgid,width,keymsgid-width >= msgid && keymsgid <= msgid); + if ( keymsgid-width >= msgid && keymsgid <= msgid && keychannel == channel ) return(0); else return(-1); } else return(-2);