Coder Social home page Coder Social logo

aelf-block-scan's People

Contributors

atom-yang avatar bikedawuwang avatar dependabot[bot] avatar hzz780 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

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.

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.