forked from shardus/lib-net
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(bugs): fixed bugs identified when testing
- Loading branch information
Showing
16 changed files
with
381 additions
and
229 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,20 @@ | ||
const fs = require('fs'); | ||
const path = require('path'); | ||
const fs = require('fs') | ||
const path = require('path') | ||
|
||
const sourceFile = path.join(__dirname, '../', 'target', 'x86_64-apple-darwin', 'debug', 'libshardus_net.dylib'); | ||
const targetFile = path.join(__dirname, '../', 'shardus-net.node'); | ||
const sourceFile = path.join( | ||
__dirname, | ||
'../', | ||
'target', | ||
'x86_64-apple-darwin', | ||
'debug', | ||
'libshardus_net.dylib' | ||
) | ||
const targetFile = path.join(__dirname, '../', 'shardus-net.node') | ||
|
||
fs.copyFile(sourceFile, targetFile, (err) => { | ||
if (err) { | ||
console.error('Error copying file:', err); | ||
console.error('Error copying file:', err) | ||
} else { | ||
console.log('File copied and renamed successfully'); | ||
console.log('File copied and renamed successfully') | ||
} | ||
}); | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
export interface Headers { | ||
[key: string]: string; | ||
[key: string]: any; | ||
} | ||
|
||
export interface HeaderV1 { | ||
senderAddress: Uint8Array; // Using Uint8Array for [u8; 32] | ||
uuid: string; // Assuming we will convert Uuid to a string representation | ||
uuid: string; | ||
messageType: number; | ||
messageLength: number; | ||
authorizationData: Uint8Array; // Using Uint8Array for Vec<u8> | ||
} |
Oops, something went wrong.