Wrong naming ... :-(
authorRoland Haeder <roland@mxchange.org>
Mon, 11 May 2015 23:39:04 +0000 (01:39 +0200)
committerRoland Haeder <roland@mxchange.org>
Mon, 11 May 2015 23:39:04 +0000 (01:39 +0200)
Signed-off-by: Roland Haeder <roland@mxchange.org>
application/hub/main/package/class_NetworkPackage.php

index 688b978d28e50ce5a5a5d074ff4f5f48f989498b..46c0e311e5fa8df09d8f3f47e71e4eb326eb00f4 100644 (file)
@@ -654,7 +654,7 @@ class NetworkPackage extends BaseHubSystem implements Deliverable, Receivable, R
                // Fake array
                $data = array(
                        self::PACKAGE_CONTENT_SENDER  => $senderId,
-                       self::PACKAGE_CONTENT_CONTENT => $content,
+                       self::PACKAGE_CONTENT_MESSAGE => $content,
                        self::PACKAGE_CONTENT_HASH    => ''
                );
        
@@ -676,7 +676,7 @@ class NetworkPackage extends BaseHubSystem implements Deliverable, Receivable, R
        private function isPackageHashValid (array $decodedArray) {
                // Check validity
                //* DEBUG-DIE: */ die(__METHOD__ . ': decodedArray=' . print_r($decodedArray, TRUE));
-               $isHashValid = Scrypt::checkScrypt($decodedArray[self::PACKAGE_CONTENT_SENDER] . ':' . $decodedArray[self::PACKAGE_CONTENT_CONTENT] . ':' . $this->determineSenderPrivateKeyHash($decodedArray), $decodedArray[self::PACKAGE_CONTENT_HASH]);
+               $isHashValid = Scrypt::checkScrypt($decodedArray[self::PACKAGE_CONTENT_SENDER] . ':' . $decodedArray[self::PACKAGE_CONTENT_MESSAGE] . ':' . $this->determineSenderPrivateKeyHash($decodedArray), $decodedArray[self::PACKAGE_CONTENT_HASH]);
 
                // Return it
                //* DEBUG-DIE: */ die(__METHOD__ . ': isHashValid=' . intval($isHashValid) . ',decodedArray=' . print_r($decodedArray, TRUE));