Open kingflurkel opened 7 years ago
Triggered on creation of a new block
name: get_balance
last_run: 0234023402340
next_run: 349583405830
interval: Block
function: _getBalance
error: _errorBalance
publicKey: 0x03k5j3lk4j53l4j5345345435
name: get_fx
last_run: 0234023402340
next_run: 349583405830
interval: 5min
function: _getFx
error: _errorFx
publicKey: 0
name: get_hashtags
last_run: 0234023402340
next_run: 349583405830
interval: 5min
function: _getHashtags
error: _errorHashtags
publicKey: 0
name: get_fx
last_run: 0234023402340
next_run: 349583405830
interval: 5min
function: _getGasPrice
error: _getGasPrice
publicKey: 0
One time tasks are not added to the queue but are processed on request.
When a user connects we add the Repeating tasks for a specific user to the queue
socketId: 8d79fg7d9f8g7
publicKey: 0x00d8fg0d9f8g0dfg90df8g09d8fgcckk
connectedTime: 23234234234
When a user disconnects we remove the Repeating tasks for a specific user to the queue
socketId: 8d79fg7d9f8g7
publicKey: 0x00d8fg0d9f8g0dfg90df8g09d8fgcckk
connectedTime: 23234234234
When a block occours
If the balance of all connected users is checked for every block, the majority will result in "no change". If the node is a full node, it could provide all Transfer logs, and the API service could calculate all balances of all addresses. Then the balance for any address would be known and up to date just by listening to the Transfer log filter.
Insert a transaction in a queue. Script is continuously iterating over the items in the queue, checking the status of the transaction. Fires events on status update.