Skip to content

Instantly share code, notes, and snippets.

View Neelaksh-Singh's full-sized avatar
🎯
Focusing

Neelaksh Singh Neelaksh-Singh

🎯
Focusing
View GitHub Profile
@Neelaksh-Singh
Neelaksh-Singh / Bitcoin-Core Tests and Excercise
Created July 1, 2022 04:58
Exercise for Chaincode Labs Bitcoin Protocol Dev Seminar
#!/usr/bin/env python3
# Copyright (c) 2017-2021 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
''' This is a custom test for chaincode problem statement :->
"Getting node 1 to mine another block, send it to node 2,
and check that node 2 received it."
'''
import requests
import time
from bs4 import BeautifulSoup
import concurrent.futures
base_url = 'https://www.4byte.directory/signatures/?page={}'
sigs = set()
run_time =0