Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v0.12.0 Release #37

Merged
merged 43 commits into from
Mar 23, 2024
Merged

v0.12.0 Release #37

merged 43 commits into from
Mar 23, 2024

Conversation

jdogresorg
Copy link
Owner

  • Added support for --reparse
  • Optimized ledger hashing
  • ADDRESS support
  • Renamed LOCK_MINT param to LOCK_MAX_MINT
  • Renamed LOCK_SUPPLY param to LOCK_MAX_SUPPLY
  • Added LOCK_MINT param to lock against MINT command
  • Added LOCK_MINT_SUPPLY param
  • BATCH support
  • AIRDROP support

- removed balances hash
- updated sanity checks to only do checks on active ACTIONS
- created getBlockTableHashes() function
- created getBlockHashes() function
- added `reparse` functionality to allow quick reparsing and validation of the ledger transactions
add support for reparsing data from a given index
updated `getBlockDataHashes()` to generate hashes based off block data + previous hash
- add `ADDRESS` action to readme
- removed `BET` action from BTNS-420 and readme

Note: BET action can be built out in XChain platform
- Renamed `LOCK_MINT` param to `LOCK_MAX_MINT`
- Added `LOCK_MINT` param to lock against `MINT` command
- updated `getHolders()` and `isDistributed()` to handle block_index and tx_index
- updated `getHolders()` to calculate holder based on credit and debits table instead of balances (credits - debits = balance)
- add support for `AIRDROP` to asset `LIST`
- cleanup airdrop code so `fees` record is only created on success
- add support for `airdrops` table to rollbacks
- increased DB hit cost to 10000
- Pull address/ticker data from various tables
- relaxed sql field definitions for issues table
- cleaned up `createIssue()`
- updated `getTokenSupply()` to support tick_id
- updated `getTokenDecimalPrecision()` to lookup data using issues table
- fixed `isDistributed()` to work with `getTokenInfo()`
- support legacy BTNS format on ISSUE/MINT/SEND
@jdogresorg
Copy link
Owner Author

jdogresorg commented Mar 22, 2024

Testnet Full Parse

root@CryptoDev:/var/www/virtual/Broadcast-Token-Naming-System/indexer# ./indexer.php --testnet
BTNS Indexer v0.12.0
processing block 2473585...
         ISSUE : JDOG : valid
         [credits:bb879 debits:e17fc txlist:2a122] Done [0.0208sec]
processing block 2473586...
         [credits:b2dd7 debits:ead93 txlist:aad84] Done [0.0021sec]
...
processing block 2583046...
         [credits:c2758 debits:719aa txlist:9c1d9] Done [0.0023sec]
processing block 2583047...
         [credits:ef0ce debits:f6e5b txlist:ed46e] Done [0.0021sec]
Total Execution time: 4 minutes 20.89 seconds

Testnet Reparse

root@CryptoDev:/var/www/virtual/Broadcast-Token-Naming-System/indexer# ./indexer.php --testnet --reparse
BTNS Indexer v0.12.0
Reparsing transactions...
reparsing block 2473585...
         ISSUE : JDOG : valid
         [credits:bb879 debits:e17fc txlist:2a122] Done [0.0158sec]
reparsing block 2473586...
         [credits:b2dd7 debits:ead93 txlist:aad84] Done [0.0017sec]
...
reparsing block 2583046...
         [credits:c2758 debits:719aa txlist:9c1d9] Done [0.0022sec]
reparsing block 2583047...
         [credits:ef0ce debits:f6e5b txlist:ed46e] Done [0.0020sec]
Total Execution time: 3 minutes 28.46 seconds
[2024-03-22 17:07:53 UTC] - Reparse complete.

Testnet looks good

@jdogresorg
Copy link
Owner Author

Mainnet Full Parse

root@CryptoDev:/var/www/virtual/Broadcast-Token-Naming-System/indexer# ./indexer.php 
BTNS Indexer v0.12.0
processing block 789742...
         ISSUE : JDOG : valid
         [credits:caa69 debits:375d0 txlist:61f57] Done [0.0242sec]
processing block 789743...
         [credits:90ddb debits:b8a76 txlist:51ee3] Done [0.0019sec]
...
processing block 835791...
         [credits:dd28d debits:9a598 txlist:1f4d0] Done [0.0019sec]
processing block 835792...
         [credits:7bc87 debits:3e908 txlist:26939] Done [0.0017sec]
Total Execution time: 1 hours 30 minutes 50.5 seconds

Mainnet Reparse

root@CryptoDev:/var/www/virtual/Broadcast-Token-Naming-System/indexer# ./indexer.php --reparse
BTNS Indexer v0.12.0
Reparsing transactions...
reparsing block 789742...
         ISSUE : JDOG : valid
         [credits:caa69 debits:375d0 txlist:61f57] Done [0.1349sec]
reparsing block 789743...
         [credits:90ddb debits:b8a76 txlist:51ee3] Done [0.1129sec]
...
reparsing block 835791...
         [credits:dd28d debits:9a598 txlist:1f4d0] Done [0.1127sec]
reparsing block 835792...
         [credits:7bc87 debits:3e908 txlist:26939] Done [0.1119sec]
Total Execution time: 2 hours 45 minutes 42.0 seconds
[2024-03-22 21:57:01 UTC] - Reparse complete.

Mainnet Looks good

@jdogresorg
Copy link
Owner Author

Dogecoin Testnet Full Parse

root@CryptoDev:/var/www/virtual/Broadcast-Token-Naming-System/indexer# ./indexer.php --testnet
BTNS Indexer v0.12.0
processing block 5940447...
         ISSUE : JDOG : valid
         [credits:e8dfe debits:31069 txlist:1bb2e] Done [0.0100sec]
processing block 5940448...
         [credits:e929d debits:4a71a txlist:d0832] Done [0.0026sec]
...
processing block 6053421...
         [credits:e48b5 debits:c90ae txlist:ac2f2] Done [0.0021sec]
processing block 6053422...
         [credits:3cba6 debits:09145 txlist:e0ffb] Done [0.0020sec]
Total Execution time: 4 minutes 22.81 seconds

Dogecoin Testnet Reparse

root@CryptoDev:/var/www/virtual/Broadcast-Token-Naming-System/indexer# ./indexer.php --testnet --reparse
BTNS Indexer v0.12.0
Reparsing transactions...
reparsing block 5940447...
         ISSUE : JDOG : valid
         [credits:e8dfe debits:31069 txlist:1bb2e] Done [0.0106sec]
reparsing block 5940448...
         [credits:e929d debits:4a71a txlist:d0832] Done [0.0012sec]
...
reparsing block 6053421...
         [credits:e48b5 debits:c90ae txlist:ac2f2] Done [0.0016sec]
reparsing block 6053422...
         [credits:3cba6 debits:09145 txlist:e0ffb] Done [0.0017sec]
Total Execution time: 3 minutes 8.49 seconds
[2024-03-22 22:37:42 UTC] - Reparse complete.

Dogecoin Testnet Looks good

@jdogresorg
Copy link
Owner Author

jdogresorg commented Mar 23, 2024

Dogeparty Mainnet Full Parse

root@CryptoDev:/var/www/virtual/Broadcast-Token-Naming-System/indexer# ./indexer.php 
BTNS Indexer v0.12.0
processing block 4717389...
         ISSUE : LONER : invalid: TICK (reserved asset)
         ISSUE : DOGE : invalid: TICK (reserved)
         ISSUE : DOGECOIN : invalid: TICK (reserved asset)
         [credits:998d4 debits:998d4 txlist:c1750] Done [0.0284sec]
processing block 4717390...
         ISSUE : PAPETO : valid
         [credits:5a650 debits:5a650 txlist:af2cc] Done [0.0591sec]
...
processing block 5140083...
         [credits:7a0d8 debits:093e3 txlist:1071c] Done [0.0023sec]
processing block 5140084...
         [credits:c376e debits:59eac txlist:0e28c] Done [0.0024sec]
Total Execution time: 1 hours 27 minutes 16.4 seconds

Dogeparty Mainnet Reparse

root@CryptoDev:/var/www/virtual/Broadcast-Token-Naming-System/indexer# ./indexer.php --reparse
BTNS Indexer v0.12.0
Reparsing transactions...
reparsing block 4717389...
         ISSUE : LONER : invalid: TICK (reserved asset)
         ISSUE : DOGE : invalid: TICK (reserved)
         ISSUE : DOGECOIN : invalid: TICK (reserved asset)
         [credits:998d4 debits:998d4 txlist:c1750] Done [0.1487sec]
reparsing block 4717390...
         ISSUE : PAPETO : valid
         [credits:5a650 debits:5a650 txlist:af2cc] Done [0.1809sec]
...
reparsing block 5140083...
         [credits:7a0d8 debits:093e3 txlist:1071c] Done [0.1255sec]
reparsing block 5140084...
         [credits:c376e debits:59eac txlist:0e28c] Done [0.1230sec]
Total Execution time: 15 hours 50 minutes 13. seconds
[2024-03-23 20:40:04 UTC] - Reparse complete.

Dogecoin Mainnet Looks good

@jdogresorg jdogresorg merged commit b2903f5 into master Mar 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant