@@ -610,7 +610,7 @@ public protocol EthereumClient : class {
610610
611611 func getBlocks ( ewm: EthereumWalletManager ,
612612 address: String ,
613- flags : Int32 ,
613+ interests : Int32 ,
614614 blockStart: UInt64 ,
615615 blockStop: UInt64 ,
616616 rid: Int32 ) -> Void
@@ -860,6 +860,12 @@ public class EthereumWalletManager {
860860 cTopics. forEach { free ( UnsafeMutablePointer ( mutating: $0) ) }
861861 }
862862
863+ public func announceBlocks ( rid: Int32 ,
864+ blockNumbers: [ UInt64 ] ) {
865+ // TODO: blocks must be BRArrayOf(uint64_t) - change to add `count`
866+ ethereumClientAnnounceBlocks ( core, rid, UnsafeMutablePointer < UInt64 > ( mutating: blockNumbers) )
867+ }
868+
863869 public func announceToken ( rid: Int32 ,
864870 address: String ,
865871 symbol: String ,
@@ -947,12 +953,12 @@ public class EthereumWalletManager {
947953 rid: rid)
948954 } } ,
949955
950- funcGetBlocks: { ( coreClient, coreEWM, address, flags , blockStart, blockStop, rid) in
956+ funcGetBlocks: { ( coreClient, coreEWM, address, interests , blockStart, blockStop, rid) in
951957 if let client = coreClient. map ( { Unmanaged < AnyEthereumClient > . fromOpaque ( $0) . takeUnretainedValue ( ) } ) ,
952958 let ewm = EthereumWalletManager . lookup ( core: coreEWM) {
953959 client. getBlocks ( ewm: ewm,
954960 address: asUTF8String ( address!) ,
955- flags : flags ,
961+ interests : interests ,
956962 blockStart: blockStart,
957963 blockStop: blockStop,
958964 rid: rid)
@@ -1241,8 +1247,8 @@ class AnyEthereumClient : EthereumClient {
12411247 base. getLogs ( ewm: ewm, address: address, event: event, rid: rid)
12421248 }
12431249
1244- func getBlocks ( ewm: EthereumWalletManager , address: String , flags : Int32 , blockStart: UInt64 , blockStop: UInt64 , rid: Int32 ) {
1245- base. getBlocks ( ewm: ewm, address: address, flags : flags , blockStart: blockStart, blockStop: blockStop, rid: rid)
1250+ func getBlocks ( ewm: EthereumWalletManager , address: String , interests : Int32 , blockStart: UInt64 , blockStop: UInt64 , rid: Int32 ) {
1251+ base. getBlocks ( ewm: ewm, address: address, interests : interests , blockStart: blockStart, blockStop: blockStop, rid: rid)
12461252 }
12471253
12481254 func getTokens ( ewm: EthereumWalletManager , rid: Int32 ) {
0 commit comments