How to Construct a Ping Message

I am struggling greatly trying to figure out how to send a basic “PING” message, and receive back a “PONG” response. import random import hashlib import socket PEER_IP = “35.187.200.6” PEER_PORT = 8333 nonce = (random.getrandbits(64)).to_bytes(8, byteorder=”little”, signed=False) magic_number = bytes.fromhex(“f9beb4d9”) command_name = bytes.fromhex(“ping”.encode(“utf-8”).hex() + (“00″)*8) payload_size = (int(len(nonce))).to_bytes(4, byteorder=”little”, signed=False) checksum = hashlib.sha256(hashlib.sha256(nonce).digest()).digest()[:4] final_msg…

Correct ABI payload packaging to call another Contract’s address

Let’s suppose I have the two following contracts, Dest and Proxy: pragma solidity ^0.5.0; contract Dest { function foo(string memory name, string memory symbol, uint256 decimals, uint256 totalSupply, address sender, uint256 value) public { /* * Logic code Here */ } function bar(address a, address b, address c, address d, uint256 e, address f, address…

What’s the vulnerability in my contract?

I’ve got a contract deployed at 0xe559835D7979dAe994331DEfaEc2FBA057E56C27 on the mainnet. Every time I go to call the payable function, which is solve, a bot beats me to it. My transaction gets rejected and theirs goes through. pragma solidity >=0.4.21 <0.6.0; // deployed at // 0xe559835d7979dae994331defaec2fba057e56c27 contract EqHunt { struct Equation { string repr; int answer;…

Hello in c# windowsform how to solve this bug?? please help

I’ve put message box in The message box opens when the two are alike but my problem is when I choose the two. My codes : public partial class DanielMotahhari : Form { Random random = new Random(); List<string> icons = new List<string>() { “!”,”!”,”N”,”N”,”,”,”,”,”k”,”k”, “b”,”b”,”v”,”v”,”w”,”w”,”z”,”z” }; Label firstClicked, secondClicked; public DanielMotahhari() { InitializeComponent(); AssignIconsTosquares();…