mirror of
https://github.com/minibits-cash/minibits_wallet.git
synced 2026-10-06 03:38:24 +00:00
Fix regression bug in reconnection to Nostr relays
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "minibits_wallet",
|
||||
"version": "0.1.6-beta.48",
|
||||
"version": "0.1.6-beta.49",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"android:clean": "cd android && ./gradlew clean",
|
||||
|
||||
@@ -209,11 +209,11 @@ const publish = async function (
|
||||
const signed = {...event} as NostrEvent
|
||||
|
||||
signed.created_at = Math.floor(Date.now() / 1000)
|
||||
signed.id = getEventHash(event)
|
||||
signed.sig = getSignature(event, keys.privateKey)
|
||||
signed.id = getEventHash(signed)
|
||||
signed.sig = getSignature(signed, keys.privateKey)
|
||||
|
||||
if(!validateEvent(event)) {
|
||||
throw new AppError(Err.VALIDATION_ERROR, 'Event is invalid and could not be published', event)
|
||||
if(!validateEvent(signed)) {
|
||||
throw new AppError(Err.VALIDATION_ERROR, 'Event is invalid and could not be published', signed)
|
||||
}
|
||||
|
||||
log.trace('Event to be published', signed, 'publish')
|
||||
|
||||
Reference in New Issue
Block a user