Skip to content

Commit

Permalink
[Mempool] Mempool V2 (#201)
Browse files Browse the repository at this point in the history
* Improve mempool system

* Revert pr #192

* Add script decoder

* Add isMyVout

* Temp commit

* Temp commit 2

* Mempool update

* various test

* mempool update

* prettier

* Store balance

* remake getbalance non-async

* fix balance issue

* don't multiply by COIN

* getUTXO -> hasUTXO

* Fix network issues

* Don't create a useless variable

* improve masternode flow

* Remove console.logs and add debug time

* Remove old mempool system

* Update network.js

* getUTXOs optimization + bug fix

* rebase fix

* remove comments

* Speed up isMyVout + add another test-timer

* fix non-hd bug

* remove comment

* mempool.js fix

* review fix

* remove some warnings

* Implement suggestions

* Remove getAllUTXOsWithValue

* Remove path as return from isMyVout

* Review Fix

* Move UTXO_WALLET_STATE to mempool

* Remove copy and paste from isMyVout

* Add max account gap

* Solve a bug and let->const

* More let->const and sync activity once mempool is loaded

* Load activity after first sync

* Don't recall getUTXOs if it has been already called

* Fix typo

* fix merge error

* fix duplication

* review fix

* remove console.logs

* fix merge errors

* Add multimap class

* remove multimap

* Remove useless async/await
  • Loading branch information
panleone authored Oct 6, 2023
1 parent f83df59 commit 2ed6214
Show file tree
Hide file tree
Showing 24 changed files with 1,655 additions and 1,497 deletions.
1 change: 1 addition & 0 deletions locale/de/translation.js
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,7 @@ export default {
MN_STATUS_IS: 'Der Status der Masternode ist', //Your masternode status is
MN_STATE: 'Die Masternode hat den Status <b>{state}</b>', //Your masternode is in <b>{state}</b> state
MN_BAD_IP: 'Die IP-Adresse ist ungültig', //The IP address is invalid!
MN_BAD_PRIVKEY: '', //The private key is invalid
MN_NOT_ENOUGH_COLLAT:
'Du benötigst <b>{amount} mehr {ticker}</b> um eine Masternode zu erstellen!', //You need <b>{amount} more {ticker}</b> to create a Masternode!
MN_ENOUGH_BUT_NO_COLLAT:
Expand Down
1 change: 1 addition & 0 deletions locale/en/translation.js
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,7 @@ export default {
MN_STATUS_IS: 'Your masternode status is',
MN_STATE: 'Your masternode is in <b>{state}</b> state',
MN_BAD_IP: 'The IP address is invalid!',
MN_BAD_PRIVKEY: 'The private key is invalid',
MN_NOT_ENOUGH_COLLAT:
'You need <b>{amount} more {ticker}</b> to create a Masternode!',
MN_ENOUGH_BUT_NO_COLLAT:
Expand Down
1 change: 1 addition & 0 deletions locale/es-mx/translation.js
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,7 @@ export default {
MN_STATUS_IS: 'El estado de tu masternode es', //Your masternode status is
MN_STATE: 'Tu masternode está <b>{state}</b>', //Your masternode is in <b>{state}</b> state
MN_BAD_IP: '¡La dirección IP no es válida!', //The IP address is invalid!
MN_BAD_PRIVKEY: '', //The private key is invalid
MN_NOT_ENOUGH_COLLAT:
'¡Necesitas <b>{amount} más {ticker}</b> para crear un Masternode!', //You need <b>{amount} more {ticker}</b> to create a Masternode!
MN_ENOUGH_BUT_NO_COLLAT:
Expand Down
1 change: 1 addition & 0 deletions locale/fr/translation.js
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,7 @@ export default {
MN_STATUS_IS: "L'état de votre masternode est", //Your masternode status is
MN_STATE: "L'état de votre masternode est <b>{state}</b>", //Your masternode is in <b>{state}</b> state
MN_BAD_IP: "L'adresse IP n'est pas valide!", //The IP address is invalid!
MN_BAD_PRIVKEY: '', //The private key is invalid
MN_NOT_ENOUGH_COLLAT:
'Vous avez besoin <b>{amount} plus {ticker}</b> pour créer un Masternode!', //You need <b>{amount} more {ticker}</b> to create a Masternode!
MN_ENOUGH_BUT_NO_COLLAT:
Expand Down
1 change: 1 addition & 0 deletions locale/it/translation.js
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,7 @@ export default {
MN_STATUS_IS: 'Lo stato del tuo Masternode è ', //Your masternode status is
MN_STATE: 'Il tuo masternode è <b>{state}</b>', //Your masternode is in <b>{state}</b> state
MN_BAD_IP: "L'indirizzo IP non è valido!", //The IP address is invalid!
MN_BAD_PRIVKEY: '', //The private key is invalid
MN_NOT_ENOUGH_COLLAT:
'Hai bisogno di <b>{amount} altri {ticker}</b> per creare un Masternode!', //You need <b>{amount} more {ticker}</b> to create a Masternode!
MN_ENOUGH_BUT_NO_COLLAT:
Expand Down
1 change: 1 addition & 0 deletions locale/ph/translation.js
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,7 @@ export default {
MN_STATUS_IS: 'Ang kalagayan ng iyong Masternode ay', //Your masternode status is
MN_STATE: 'Ang iyong masternode ay nasa <b>{state}</b> kalagayan', //Your masternode is in <b>{state}</b> state
MN_BAD_IP: 'Ang IP address ay hindi wasto!', //The IP address is invalid!
MN_BAD_PRIVKEY: '', //The private key is invalid
MN_NOT_ENOUGH_COLLAT:
'Kailangan mo ng <b>{amount} pang {ticker}</b> upang makagawa ng Masternode!', //You need <b>{amount} more {ticker}</b> to create a Masternode!
MN_ENOUGH_BUT_NO_COLLAT:
Expand Down
1 change: 1 addition & 0 deletions locale/pt-br/translation.js
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,7 @@ export default {
MN_STATUS_IS: 'O status do seu masternode é', //Your masternode status is
MN_STATE: 'O status do seu masternode é <b>{state}</b>', //Your masternode is in <b>{state}</b> state
MN_BAD_IP: 'O endereço IP é inválido!', //The IP address is invalid!
MN_BAD_PRIVKEY: '', //The private key is invalid
MN_NOT_ENOUGH_COLLAT:
'Você precisa de <b>{amount} mais {ticker}</b> para criar um Masternode!', //You need <b>{amount} more {ticker}</b> to create a Masternode!
MN_ENOUGH_BUT_NO_COLLAT:
Expand Down
1 change: 1 addition & 0 deletions locale/pt-pt/translation.js
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,7 @@ export default {
MN_STATUS_IS: 'O estado do seu masternode é', //Your masternode status is
MN_STATE: 'O estado do seu masternode é <b>{state}</b>', //Your masternode is in <b>{state}</b> state
MN_BAD_IP: 'O endereço IP é inválido!', //The IP address is invalid!
MN_BAD_PRIVKEY: '', //The private key is invalid
MN_NOT_ENOUGH_COLLAT:
'Você precisa de <b>{amount} mais {ticker}</b> para criar um Masternode!', //You need <b>{amount} more {ticker}</b> to create a Masternode!
MN_ENOUGH_BUT_NO_COLLAT:
Expand Down
1 change: 1 addition & 0 deletions locale/template/translation.js
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,7 @@ export default {
MN_STATUS_IS: '', //Your masternode status is
MN_STATE: '', //Your masternode is in <b>{state}</b> state
MN_BAD_IP: '', //The IP address is invalid!
MN_BAD_PRIVKEY: '', //The private key is invalid!
MN_NOT_ENOUGH_COLLAT: '', //You need <b>{amount} more {ticker}</b> to create a Masternode!
MN_ENOUGH_BUT_NO_COLLAT: '', //You have enough balance for a Masternode, but no valid collateral UTXO of {amount} {ticker}
MN_COLLAT_NOT_SUITABLE: '', //This is not a suitable UTXO for a Masternode
Expand Down
1 change: 1 addition & 0 deletions locale/uwu/translation.js
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,7 @@ export default {
MN_STATUS_IS: 'Ur masternowode status is', //Your masternode status is
MN_STATE: 'Ur masternowode is in <b>{state}</b> state', //Your masternode is in <b>{state}</b> state
MN_BAD_IP: 'The IP addwess is invalid!', //The IP address is invalid!
MN_BAD_PRIVKEY: '', //The private key is invalid
MN_NOT_ENOUGH_COLLAT:
'Yew need <b>{amount} more {ticker}</b> to create a Masternowode!', //You need <b>{amount} more {ticker}</b> to create a Masternode!
MN_ENOUGH_BUT_NO_COLLAT:
Expand Down
Loading

0 comments on commit 2ed6214

Please sign in to comment.