diff --git a/.gitignore b/.gitignore index a84d34ea..d1c8be21 100644 --- a/.gitignore +++ b/.gitignore @@ -329,3 +329,6 @@ ASALocalRun/ # MFractors (Xamarin productivity tool) working folder .mfractor/ + +# Java keystore +*.jks \ No newline at end of file diff --git a/Spixi/Network/NetworkProtocol.cs b/Spixi/Network/NetworkProtocol.cs index 55f99ba8..c2e34c20 100644 --- a/Spixi/Network/NetworkProtocol.cs +++ b/Spixi/Network/NetworkProtocol.cs @@ -254,40 +254,6 @@ public static void parseProtocolMessage(ProtocolMessageCode code, byte[] data, R } break; - case ProtocolMessageCode.balance: - { - using (MemoryStream m = new MemoryStream(data)) - { - using (BinaryReader reader = new BinaryReader(m)) - { - int address_length = reader.ReadInt32(); - Address address = new Address(reader.ReadBytes(address_length)); - - // Retrieve the latest balance - IxiNumber balance = reader.ReadString(); - - if (address.SequenceEqual(IxianHandler.getWalletStorage().getPrimaryAddress())) - { - // Retrieve the blockheight for the balance - ulong block_height = reader.ReadUInt64(); - - if (block_height > Node.balance.blockHeight && (Node.balance.balance != balance || Node.balance.blockHeight == 0)) - { - byte[] block_checksum = reader.ReadBytes(reader.ReadInt32()); - - Node.balance.address = address; - Node.balance.balance = balance; - Node.balance.blockHeight = block_height; - Node.balance.blockChecksum = block_checksum; - Node.balance.verified = false; - } - Node.balance.lastUpdate = Clock.getTimestamp(); - } - } - } - } - break; - case ProtocolMessageCode.balance2: { using (MemoryStream m = new MemoryStream(data))