- Startup flags printout
- Log manipulation - Viewer
test_mempool_accept.py fails for the wrong reason on line 308 when ScriptSig size is extended because the push style in the test is pushing more than 520 bytes.
| #!/bin/bash | |
| # Bitcoin daemon setup script | |
| # This script sets up bitcoind with proper user, directories, and systemd service | |
| set -e # Exit on error | |
| # Colors for output | |
| RED='\033[0;31m' | |
| GREEN='\033[0;32m' |
| #!/bin/bash | |
| # Get peer info and disconnect any peer with "knots" in the subver field | |
| bitcoin-cli getpeerinfo | jq -r '.[] | select(.subver | ascii_downcase | contains("knots")) | .id' | while read peer_id; do | |
| if [ ! -z "$peer_id" ]; then | |
| echo "Disconnecting peer ID $peer_id with knots client" | |
| bitcoin-cli disconnectnode "" "$peer_id" | |
| fi | |
| done |
| #include <iostream> | |
| #include <chrono> | |
| #include <openssl/sha.h> | |
| #include <cpuid.h> | |
| bool check_sha_support() { | |
| unsigned int eax, ebx, ecx, edx; | |
| if (__get_cpuid(7, &eax, &ebx, &ecx, &edx)) { | |
| return (ebx & (1 << 29)) != 0; // Check bit 29 for SHA extensions | |
| } |
| use actix_web::{get, web, App, HttpResponse, HttpServer, Responder}; | |
| use bitcoincore_rpc::{Auth, Client, RpcApi}; | |
| use serde_json::Value; | |
| struct AppState { | |
| btc_client: Client, | |
| } | |
| #[get("/blocktemplate")] | |
| async fn get_block_template(data: web::Data<AppState>) -> impl Responder { |
| #!/bin/bash | |
| # Update the system | |
| sudo yum update -y | |
| # Install Docker | |
| sudo amazon-linux-extras install docker -y | |
| sudo systemctl start docker | |
| sudo systemctl enable docker | |
| sudo usermod -aG docker ec2-user |
| import requests | |
| import csv | |
| from datetime import datetime | |
| import time | |
| import matplotlib.pyplot as plt | |
| import pandas as pd | |
| # Bitcoin node RPC connection details | |
| rpc_user = 'your_rpc_username' | |
| rpc_password = 'your_rpc_password' |
| import requests | |
| import csv | |
| from datetime import datetime | |
| import time | |
| import matplotlib.pyplot as plt | |
| import pandas as pd | |
| # Bitcoin node RPC connection details | |
| rpc_user = 'your_rpc_username' | |
| rpc_password = 'your_rpc_password' |
| package main | |
| import ( | |
| "encoding/json" | |
| "fmt" | |
| "io" | |
| "net/http" | |
| ) | |
| type SystemInfo struct { |