aelf-block-scan's People
aelf-block-scan's Issues
Refactor with custom data structure which implements Iterator
Refactor with custom data structure which implements Iterator.
- Design and implement a custom data structure which contains block and transactions
- This data structure implements Iterator which can be iterated by
for...of...
- This data structure implements async Iterator which can be iterated by
for await ...of...
- This data structure contains multi methods which can process some operations.
Rewrite the asynchronous iterations parts with RxJS
RxJS is suitable for asynchronous iterations.
With this library, we can easily compose asynchronous or callback-based code
Two issue about block-scan.
- 1. When send method is transfer, the scan will hit the error.
'Block Height: 181, Error when Promise.all(transactionPromises)',
TypeError: txInfo.params.split is not a function
at transactionFormat (/home/zhengyue/github/aelf-block-scan/lib/format.js:122:38)
at insertOptions.transactionsDetail.txsList.map.item (/home/zhengyue/github/aelf-block-scan/index.js:290:36)
at Array.map (<anonymous>)
at Promise.all.then (/home/zhengyue/github/aelf-block-scan/index.js:289:68)
at process._tickCallback (internal/process/next_tick.js:68:7),
- 2. when the transaction is failed for Insufficient resource balance, the scan will hit the error.
(node:25809) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'find' of undefined
at formatResourceDetail (/home/zhengyue/github/aelf-block-scan/lib/formatResource.js:46:34)
at resourceTxs.map.item (/home/zhengyue/github/aelf-block-scan/lib/insertPure.js:101:16)
at Array.map (<anonymous>)
at insertResourceTransactions (/home/zhengyue/github/aelf-block-scan/lib/insertPure.js:100:46)
at insertBlockAndTxs (/home/zhengyue/github/aelf-block-scan/index.js:337:11)
at process._tickCallback (internal/process/next_tick.js:68:7)
(node:25809) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:25809) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Simplify or remove this namespace
aelf-block-scan/proto/token_contract.proto
Lines 10 to 15 in 00f1961
This issue was generated by todo based on a TODO
comment in 00f1961. It's been assigned to @hzz780 because they committed the code.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.