Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
T
tangled
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
eriksson monteiro
tangled
Commits
d7055843
Commit
d7055843
authored
Nov 22, 2021
by
Eriksson Monteiro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update millix node
parent
7eb39c8b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
millix_node/core/wallet/wallet-transaction-consensus.js
millix_node/core/wallet/wallet-transaction-consensus.js
+1
-1
millix_node/core/wallet/wallet.js
millix_node/core/wallet/wallet.js
+1
-1
millix_node/net/peer.js
millix_node/net/peer.js
+2
-2
No files found.
millix_node/core/wallet/wallet-transaction-consensus.js
View file @
d7055843
...
@@ -461,7 +461,7 @@ export class WalletTransactionConsensus {
...
@@ -461,7 +461,7 @@ export class WalletTransactionConsensus {
console
.
log
(
'
[wallet-transaction-consensus-oracle] request received to validate transaction
'
,
transactionID
);
console
.
log
(
'
[wallet-transaction-consensus-oracle] request received to validate transaction
'
,
transactionID
);
eventBus
.
emit
(
'
wallet_event_log
'
,
{
eventBus
.
emit
(
'
wallet_event_log
'
,
{
type
:
'
transaction_validation_
reques
t
'
,
type
:
'
transaction_validation_
star
t
'
,
content
:
data
,
content
:
data
,
from
:
node
from
:
node
});
});
...
...
millix_node/core/wallet/wallet.js
View file @
d7055843
...
@@ -1734,7 +1734,7 @@ class Wallet {
...
@@ -1734,7 +1734,7 @@ class Wallet {
eventBus
.
on
(
'
shard_sync_request
'
,
this
.
_onSyncShard
.
bind
(
this
));
eventBus
.
on
(
'
shard_sync_request
'
,
this
.
_onSyncShard
.
bind
(
this
));
eventBus
.
on
(
'
wallet_transaction_sync
'
,
this
.
_onSyncWalletBalance
.
bind
(
this
));
eventBus
.
on
(
'
wallet_transaction_sync
'
,
this
.
_onSyncWalletBalance
.
bind
(
this
));
eventBus
.
on
(
'
wallet_transaction_sync_response
'
,
this
.
_onSyncWalletBalanceResponse
.
bind
(
this
));
eventBus
.
on
(
'
wallet_transaction_sync_response
'
,
this
.
_onSyncWalletBalanceResponse
.
bind
(
this
));
eventBus
.
on
(
'
transaction_validation_
reques
t
'
,
this
.
_onTransactionValidationRequest
.
bind
(
this
));
eventBus
.
on
(
'
transaction_validation_
star
t
'
,
this
.
_onTransactionValidationRequest
.
bind
(
this
));
eventBus
.
on
(
'
transaction_validation_response
'
,
this
.
_onTransactionValidationResponse
.
bind
(
this
));
eventBus
.
on
(
'
transaction_validation_response
'
,
this
.
_onTransactionValidationResponse
.
bind
(
this
));
eventBus
.
on
(
'
transaction_spend_request
'
,
this
.
_onSyncTransactionSpendTransaction
.
bind
(
this
));
eventBus
.
on
(
'
transaction_spend_request
'
,
this
.
_onSyncTransactionSpendTransaction
.
bind
(
this
));
eventBus
.
on
(
'
transaction_output_spend_request
'
,
this
.
_onSyncOutputSpendTransaction
.
bind
(
this
));
eventBus
.
on
(
'
transaction_output_spend_request
'
,
this
.
_onSyncOutputSpendTransaction
.
bind
(
this
));
...
...
millix_node/net/peer.js
View file @
d7055843
...
@@ -668,7 +668,7 @@ class Peer {
...
@@ -668,7 +668,7 @@ class Peer {
transactionValidationRequest
(
content
,
ws
)
{
transactionValidationRequest
(
content
,
ws
)
{
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
let
payload
=
{
let
payload
=
{
type
:
'
transaction_validation_
reques
t
'
,
type
:
'
transaction_validation_
star
t
'
,
content
content
};
};
...
@@ -678,7 +678,7 @@ class Peer {
...
@@ -678,7 +678,7 @@ class Peer {
let
data
=
JSON
.
stringify
(
payload
);
let
data
=
JSON
.
stringify
(
payload
);
try
{
try
{
let
callbackCalled
=
false
;
let
callbackCalled
=
false
;
if
(
ws
.
nodeConnectionReady
&&
!
(
ws
.
inBound
&&
!
ws
.
bidirectional
)
)
{
if
(
ws
.
nodeConnectionReady
)
{
const
messageID
=
'
transaction_validation_response:
'
+
content
.
transaction_id
;
const
messageID
=
'
transaction_validation_response:
'
+
content
.
transaction_id
;
eventBus
.
removeAllListeners
(
messageID
);
eventBus
.
removeAllListeners
(
messageID
);
eventBus
.
once
(
messageID
,
function
(
eventData
,
eventWS
)
{
eventBus
.
once
(
messageID
,
function
(
eventData
,
eventWS
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment