We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bfd0d55 commit 8a008e1Copy full SHA for 8a008e1
1 file changed
tools/sync.js
@@ -19,7 +19,7 @@ var Transaction = mongoose.model( 'Transaction' );
19
//Just listen for latest blocks and sync from the start of the app.
20
**/
21
var listenBlocks = function(config) {
22
- var newBlocks = web3.eth.filter("latest");
+ var newBlocks = web3.eth.getBlock("latest");
23
newBlocks.watch(function (error, blockHashOrNumber) {
24
if(error) {
25
console.log('Error: ' + error);
0 commit comments