]> git.mxchange.org Git - hub.git/blobdiff - application/hub/classes/package/class_NetworkPackage.php
Added code ...
[hub.git] / application / hub / classes / package / class_NetworkPackage.php
index abf479254dd98e86a4f5b9748c6d51536fb25ab4..af1de4a2a5319b5d33b080685f8b509014039550 100644 (file)
@@ -364,7 +364,7 @@ class NetworkPackage extends BaseHubSystem implements Deliverable, Receivable, R
                        // Don't accept empty hashes
                        if (empty($senderData[NodeDistributedHashTableDatabaseWrapper::DB_COLUMN_PRIVATE_KEY_HASH])) {
                                // Don't accept
-                               throw new InvalidPrivateKeyHashException(array($this, $senderData, 'empty hash in senderData'));
+                               throw new InvalidPrivateKeyHashException(array($this, $senderData, 'empty hash in senderData'), self::EXCEPTION_INVALID_PRIVATE_KEY_HASH);
                        } // END - if
 
                        // Return it
@@ -378,7 +378,7 @@ class NetworkPackage extends BaseHubSystem implements Deliverable, Receivable, R
                // Don't accept empty keys
                if (empty($decodedData[self::PACKAGE_CONTENT_PRIVATE_KEY_HASH])) {
                        // This needs fixing
-                       throw new InvalidPrivateKeyHashException(array($this, $senderData, 'empty hash in decodedData'));
+                       throw new InvalidPrivateKeyHashException(array($this, $senderData, 'empty hash in decodedData'), self::EXCEPTION_INVALID_PRIVATE_KEY_HASH);
                } // END - if
 
                // There is no DHT entry so, accept the hash from decoded data