threefoldtecharchive / threefold-wallet-electron

An electron-based Desktop Wallet
Apache License 2.0
0 stars 3 forks source link

fix account critical blocking bug when only the genesis block exists #282

Closed GlenDC closed 5 years ago

GlenDC commented 5 years ago

There seems to be a blocking bug for chains where only the genesis block (height: 0) exists:

_redefine.js:30 Uncaught (in promise) TypeError: Function.prototype.toString requires that 'this' be a Function
    at Function.toString (<anonymous>)
    at Function.toString (_redefine.js:30)
    at tfchain.polyfill.jsm….promisepooljs.py:2
toString    @   _redefine.js:30
(anonymous) @   tfchain.polyfill.jsm….promisepooljs.py:2
Promise.catch (async)       
module.exports../app/tfchain/tfchain.polyfill.jsmods.promisepooljs.js.PromisePool._trackPromise @   tfchain.polyfill.jsm….promisepooljs.py:2
module.exports../app/tfchain/tfchain.polyfill.jsmods.promisepooljs.js.PromisePool._proceed  @   tfchain.polyfill.jsm….promisepooljs.py:2
(anonymous) @   tfchain.polyfill.jsm….promisepooljs.py:2
module.exports../app/tfchain/tfchain.polyfill.jsmods.promisepooljs.js.PromisePool.start @   tfchain.polyfill.jsm….promisepooljs.py:2
promise_pool_new    @   tfchain.polyfill.asynchronous.py:88
(anonymous) @   tfchain.wallet.py:1760
(anonymous) @   org.transcrypt.__runtime__.py:4
(anonymous) @   tfchain.wallet.py:1745
(anonymous) @   org.transcrypt.__runtime__.py:4
(anonymous) @   tfchain.wallet.py:172
(anonymous) @   org.transcrypt.__runtime__.py:4
(anonymous) @   api.py:1419
(anonymous) @   org.transcrypt.__runtime__.py:4
generator   @   api.py:1003
producer    @   tfchain.polyfill.asynchronous.py:69
next    @   tfchain.polyfill.jsm….promisepooljs.py:2
module.exports../app/tfchain/tfchain.polyfill.jsmods.promisepooljs.js.PromisePool._proceed  @   tfchain.polyfill.jsm….promisepooljs.py:2
(anonymous) @   tfchain.polyfill.jsm….promisepooljs.py:2
module.exports../app/tfchain/tfchain.polyfill.jsmods.promisepooljs.js.PromisePool.start @   tfchain.polyfill.jsm….promisepooljs.py:2
promise_pool_new    @   tfchain.polyfill.asynchronous.py:88
body    @   api.py:1004
Promise.then (async)        
chain   @   tfchain.polyfill.asynchronous.py:30
(anonymous) @   api.py:981
(anonymous) @   org.transcrypt.__runtime__.py:4
dispatch    @   index.js:88
(anonymous) @   /Users/glendc/oss/gi…unk/lib/index.js:11
dispatch    @   VM107:1
updateAccount   @   Login.js:19
Login.login @   Login.js:57
Login.onKeyDown.e   @   Login.js:70
callCallback    @   /Users/glendc/oss/gi….development.js:149
invokeGuardedCallbackDev    @   /Users/glendc/oss/gi….development.js:199
invokeGuardedCallback   @   /Users/glendc/oss/gi….development.js:256
invokeGuardedCallbackAndCatchFirstError @   /Users/glendc/oss/gi….development.js:270
executeDispatch @   /Users/glendc/oss/gi….development.js:561
executeDispatchesInOrder    @   /Users/glendc/oss/gi….development.js:583
executeDispatchesAndRelease @   /Users/glendc/oss/gi….development.js:680
executeDispatchesAndReleaseTopLevel @   /Users/glendc/oss/gi….development.js:688
forEachAccumulated  @   /Users/glendc/oss/gi….development.js:662
runEventsInBatch    @   /Users/glendc/oss/gi….development.js:816
runExtractedEventsInBatch   @   /Users/glendc/oss/gi….development.js:824
handleTopLevel  @   /Users/glendc/oss/gi…development.js:4826
batchedUpdates$1    @   /Users/glendc/oss/gi…evelopment.js:20439
batchedUpdates  @   /Users/glendc/oss/gi…development.js:2151
dispatchEvent   @   /Users/glendc/oss/gi…development.js:4905
(anonymous) @   /Users/glendc/oss/gi…evelopment.js:20490
unstable_runWithPriority    @   /Users/glendc/oss/gi….development.js:255
interactiveUpdates$1    @   /Users/glendc/oss/gi…evelopment.js:20489
interactiveUpdates  @   /Users/glendc/oss/gi…development.js:2170
dispatchInteractiveEvent    @   /Users/glendc/oss/gi…development.js:4882
_redefine.js:30 Uncaught (in promise) TypeError: Function.prototype.toString requires that 'this' be a Function
    at Function.toString (<anonymous>)
    at Function.toString (_redefine.js:30)
    at tfchain.polyfill.jsm….promisepooljs.py:2
toString    @   _redefine.js:30
(anonymous) @   tfchain.polyfill.jsm….promisepooljs.py:2
Promise.catch (async)       
module.exports../app/tfchain/tfchain.polyfill.jsmods.promisepooljs.js.PromisePool._trackPromise @   tfchain.polyfill.jsm….promisepooljs.py:2
module.exports../app/tfchain/tfchain.polyfill.jsmods.promisepooljs.js.PromisePool._proceed  @   tfchain.polyfill.jsm….promisepooljs.py:2
(anonymous) @   tfchain.polyfill.jsm….promisepooljs.py:2
module.exports../app/tfchain/tfchain.polyfill.jsmods.promisepooljs.js.PromisePool.start @   tfchain.polyfill.jsm….promisepooljs.py:2
promise_pool_new    @   tfchain.polyfill.asynchronous.py:88
(anonymous) @   tfchain.wallet.py:1760
(anonymous) @   org.transcrypt.__runtime__.py:4
(anonymous) @   tfchain.wallet.py:1745
(anonymous) @   org.transcrypt.__runtime__.py:4
(anonymous) @   tfchain.wallet.py:172
(anonymous) @   org.transcrypt.__runtime__.py:4
(anonymous) @   api.py:1419
(anonymous) @   org.transcrypt.__runtime__.py:4
generator   @   api.py:1003
producer    @   tfchain.polyfill.asynchronous.py:69
next    @   tfchain.polyfill.jsm….promisepooljs.py:2
module.exports../app/tfchain/tfchain.polyfill.jsmods.promisepooljs.js.PromisePool._proceed  @   tfchain.polyfill.jsm….promisepooljs.py:2
(anonymous) @   tfchain.polyfill.jsm….promisepooljs.py:2
module.exports../app/tfchain/tfchain.polyfill.jsmods.promisepooljs.js.PromisePool.start @   tfchain.polyfill.jsm….promisepooljs.py:2
promise_pool_new    @   tfchain.polyfill.asynchronous.py:88
body    @   api.py:1004
Promise.then (async)        
chain   @   tfchain.polyfill.asynchronous.py:30
(anonymous) @   api.py:981
(anonymous) @   org.transcrypt.__runtime__.py:4
dispatch    @   index.js:88
(anonymous) @   /Users/glendc/oss/gi…unk/lib/index.js:11
dispatch    @   VM107:1
updateAccount   @   Root.js:19
intervalID.setInterval  @   Root.js:49
setInterval (async)     
componentWillMount  @   Root.js:46
callComponentWillMount  @   /Users/glendc/oss/gi…evelopment.js:11421
mountClassInstance  @   /Users/glendc/oss/gi…evelopment.js:11514
updateClassComponent    @   /Users/glendc/oss/gi…evelopment.js:14688
beginWork   @   /Users/glendc/oss/gi…evelopment.js:15644
performUnitOfWork   @   /Users/glendc/oss/gi…evelopment.js:19312
workLoop    @   /Users/glendc/oss/gi…evelopment.js:19352
renderRoot  @   /Users/glendc/oss/gi…evelopment.js:19435
performWorkOnRoot   @   /Users/glendc/oss/gi…evelopment.js:20342
performWork @   /Users/glendc/oss/gi…evelopment.js:20254
performSyncWork @   /Users/glendc/oss/gi…evelopment.js:20228
requestWork @   /Users/glendc/oss/gi…evelopment.js:20097
scheduleWork    @   /Users/glendc/oss/gi…evelopment.js:19911
scheduleRootUpdate  @   /Users/glendc/oss/gi…evelopment.js:20572
updateContainerAtExpirationTime @   /Users/glendc/oss/gi…evelopment.js:20600
updateContainer @   /Users/glendc/oss/gi…evelopment.js:20657
ReactRoot.render    @   /Users/glendc/oss/gi…evelopment.js:20953
(anonymous) @   /Users/glendc/oss/gi…evelopment.js:21090
unbatchedUpdates    @   /Users/glendc/oss/gi…evelopment.js:20459
legacyRenderSubtreeIntoContainer    @   /Users/glendc/oss/gi…evelopment.js:21086
render  @   /Users/glendc/oss/gi…evelopment.js:21155
./app/index.js  @   index.js:8
__webpack_require__ @   bootstrap:723
fn  @   bootstrap:100
0   @   renderer.dev.js:128166
__webpack_require__ @   bootstrap:723
(anonymous) @   bootstrap:790
(anonymous) @   bootstrap:790