             },
             { (info, peers, peersCount) in // savePeers
                 let wm : WalletManager = (info?.assumingMemoryBound(to: WalletManager.self).pointee)!
-                wm.savePeers(blocks: [BRPeer](UnsafeBufferPointer(start: peers, count: peersCount)))
+                wm.savePeers(peers: [BRPeer](UnsafeBufferPointer(start: peers, count: peersCount)))
             },
             { (info) -> Int32 in // networkIsReachable
                 let wm : WalletManager = (info?.assumingMemoryBound(to: WalletManager.self).pointee)!

        // setup tables and indexes
        setupDb()
        
        // instatiate wallet
        var transactions = loadTransactions()
        wallet = BRWalletNew(&transactions, transactions.count, masterPubKey)


            },
            { (info, txHashes, txCount, blockHeight, timestamp) in // txUpdated
                let wm : WalletManager = (info?.assumingMemoryBound(to: WalletManager.self).pointee)!
                
                if (txCount > 0) {
                    wm.updateTransactions(txHashes: [UInt256](UnsafeBufferPointer(start: txHashes, count: txCount)),
                                          blockHeight: blockHeight, timestamp: timestamp)
                }
            },
            { (info, txHash, notifyUser, recommendRescan) in // txDeleted
                let wm : WalletManager = (info?.assumingMemoryBound(to: WalletManager.self).pointee)!
