mirror of
				https://github.com/hackku21/loc-chain-backend.git
				synced 2025-06-13 12:53:59 +00:00 
			
		
		
		
	Responsible bug fixes
This commit is contained in:
		
							parent
							
								
									70aa8c6a5e
								
							
						
					
					
						commit
						8b3905fd5c
					
				| @ -361,7 +361,7 @@ export class Blockchain extends Unit { | ||||
|         } | ||||
| 
 | ||||
|         await this.firebase.unlock('block') | ||||
|         this.refresh() | ||||
|         // this.refresh()
 | ||||
|         return blocks | ||||
|     } | ||||
| 
 | ||||
| @ -465,6 +465,7 @@ export class Blockchain extends Unit { | ||||
| 
 | ||||
|         return Buffer.from((await openpgp.sign({ | ||||
|             message, | ||||
|             date: new Date(3000, 12), | ||||
|             privateKeys: await openpgp.readKey({ | ||||
|                 armoredKey: privateKey | ||||
|             }), | ||||
| @ -486,6 +487,7 @@ export class Blockchain extends Unit { | ||||
|             lastBlockUUID: '', | ||||
|             proof: (await openpgp.sign({ | ||||
|                 message, | ||||
|                 date: new Date(3000, 12), | ||||
|                 privateKeys: await openpgp.readKey({ | ||||
|                     armoredKey: privateKey | ||||
|                 }), | ||||
| @ -545,6 +547,7 @@ export class Blockchain extends Unit { | ||||
|         // Sign the hash using the server's private key
 | ||||
|         return (await openpgp.sign({ | ||||
|             message, | ||||
|             date: new Date(3000, 12), | ||||
|             privateKeys: await openpgp.readKey({ | ||||
|                 armoredKey: privateKey, | ||||
|             }) | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user