From 885392628745f64783e42136d1fb22276c455e14 Mon Sep 17 00:00:00 2001 From: Kevin Froman Date: Sun, 22 Apr 2018 21:16:11 -0500 Subject: [PATCH] bumped api version and removed encode on setdata since it is always bytes now --- onionr/core.py | 2 +- onionr/onionr.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/onionr/core.py b/onionr/core.py index 4b6d8d88..017c7562 100644 --- a/onionr/core.py +++ b/onionr/core.py @@ -270,7 +270,7 @@ class Core: ''' Set the data assciated with a hash ''' - data = data.encode() + data = data hasher = hashlib.sha3_256() hasher.update(data) dataHash = hasher.hexdigest() diff --git a/onionr/onionr.py b/onionr/onionr.py index e9bd8f15..ae113ba4 100755 --- a/onionr/onionr.py +++ b/onionr/onionr.py @@ -34,7 +34,7 @@ except ImportError: ONIONR_TAGLINE = 'Anonymous P2P Platform - GPLv3 - https://Onionr.VoidNet.Tech' ONIONR_VERSION = '0.0.0' # for debugging and stuff -API_VERSION = '1' # increments of 1; only change when something fundemental about how the API works changes. This way other nodes knows how to communicate without learning too much information about you. +API_VERSION = '2' # increments of 1; only change when something fundemental about how the API works changes. This way other nodes knows how to communicate without learning too much information about you. class Onionr: def __init__(self):