It was the Bitcointalk forum that inspired us to create Bitcointalksearch.org - Bitcointalk is an excellent site that should be the default page for anybody dealing in cryptocurrency, since it is a virtual gold-mine of data. However, our experience and user feedback led us create our site; Bitcointalk's search is slow, and difficult to get the results you need, because you need to log in first to find anything useful - furthermore, there are rate limiters for their search functionality.
The aim of our project is to create a faster website that yields more results and faster without having to create an account and eliminate the need to log in - your personal data, therefore, will never be in jeopardy since we are not asking for any of your data and you don't need to provide them to use our site with all of its capabilities.
We created this website with the sole purpose of users being able to search quickly and efficiently in the field of cryptocurrency so they will have access to the latest and most accurate information and thereby assisting the crypto-community at large.
listen=1
server=1
daemon=1
port=31469
rpcport=31397
rpcallowip=127.0.0.1
rpcuser=rpcuser
rpcpassword=rpcpassword
maxconnections=24
{
"hash" : "8338ca5d603cb092a8801cae8de62d53c8bed5f71cc007acb84215fe2fea38d2",
"confirmations" : 433198,
"strippedsize" : 200,
"size" : 200,
"weight" : 800,
"height" : 1600000,
"version" : 2,
"versionHex" : "00000002",
"merkleroot" : "7b8b1cc25ecab74192845127ed82a45e596d67a29f4c31b2f8cf3a6f4fb69836",
"tx" : [
"7b8b1cc25ecab74192845127ed82a45e596d67a29f4c31b2f8cf3a6f4fb69836"
],
"time" : 1645704890,
"mediantime" : 1645704572,
"nonce" : 101,
"difficulty" : 21.90408874,
"shift" : 64,
"adder" : "2245420651",
"gapstart" : "1094875564289667875541388914785213712361758890573529802407454521238655692173188869014596521191019",
"gapend" : "1094875564289667875541388914785213712361758890573529802407454521238655692173188869014596521196119",
"gaplen" : 5100,
"merit" : 23.06243761,
"chainwork" : "000000000000000000000000000000000000000000000000001b6d3752ba3300",
"nTx" : 1,
"previousblockhash" : "8aa9f6a6ffa389acfabd752104388e0035f7f2abd609fd9878698ccb75b9da26",
"nextblockhash" : "89e5364c59072595ecb68a1572394e9172395f9a9b7bcb624bfbf8dabff3e34e"
}
# Script to compare gaps to the up-to-date PrimeGapList
# Comparison from a Dump formatted for Troisi
# ex: 24870 2022-03-14 Gapcoin 28.058336 8801393720369171138807534378484094148199678813285045428660226799169766010648198304648629482463204306059854541052756367705300199390163670465161859720297775763621878627880034299171594029366567540559025279446203633719720558636541192240085556163486233788883525676598009670804662649198274483578163346149528131010232947964561361460116860454085789818741262035884363732876225001181914637776561
# PrimeGapList and Files Path
$Path = "F:\Alex\" # Path to edit
# Generate a timestamp for the file name (6 characters for hour, minute, second)
$timestamp = (Get-Date -Format "HHmmss")
# Set the file name with the timestamp to avoid overwriting previous files
$PotentialRecordsFile = "$Path\PotentialRecords_$timestamp.txt"
# Download and Get the Prime Gap List
Invoke-WebRequest -Uri "https://raw.githubusercontent.com/primegap-list-project/prime-gap-list/master/allgaps.sql" -OutFile "$Path\LastPrimeGapList.txt"
$PrimeGapList = Get-Content "$Path\LastPrimeGapList.txt"
# Parse the PrimeGapList into a hashtable for faster lookups
$GapDictionary = @{}
foreach ($line in $PrimeGapList) {
if ($line -match "VALUES\((\d+),") {
$gapSize = $matches[1]
$values = $line -replace "INSERT INTO gaps VALUES\(", "" -replace "\);", ""
$fields = $values -split ","
$GapDictionary[$gapSize] = $fields[7] # Store Merit value in hashtable
}
}
# Ask the user to input the number of lines to compare
$numberOfLines = Read-Host "Entrez le nombre de lignes à comparer"
# Get Dump to Compare based on user input
$ToCompare = Get-Content "$Path\Dump_Mersenne.csv" | Select-Object -Last $numberOfLines
#$ToCompare = Get-Content "$Path\Dump_Mersenne.csv" | Select-Object -last 50000
# Create the file with the timestamp in the name
Set-Content -Path $PotentialRecordsFile -Value "Potential Gapcoin Records"
$c = 1
$s = 1
$TotalLines = $ToCompare.count
# Initialize timing variables
$startTime = Get-Date
$recordCount = 0
# Look for each line to compare
foreach ($line in $ToCompare) {
$fields = $line.Split(",")
$GapSizetoCompare = $fields[0]
$MerittoCompare = $fields[2]
$Discoverer = $fields[3]
$Date = $fields[4]
$Digits = $fields[5]
$Prime = $fields[6]
# Reformat the date to 'YYYY-MM-DD'
$FormattedDate = Get-Date $Date -Format "yyyy-MM-dd"
# Get the merit from the dictionary
if ($GapDictionary.ContainsKey($GapSizetoCompare)) {
$Merit = $GapDictionary[$GapSizetoCompare]
# Calculate progress and time remaining
$elapsedTime = (Get-Date) - $startTime
$blocksPerHour = $s / $elapsedTime.TotalHours
$remainingBlocks = $TotalLines - $s
$timeRemaining = [System.TimeSpan]::FromHours($remainingBlocks / $blocksPerHour)
$progressInfo = "($s/$TotalLines, PRecords: $recordCount, Blocks/h: $([math]::Round($blocksPerHour, 0)), ETA: $([math]::Round($timeRemaining.TotalHours, 1)) hours)"
# Compare, display in console, and write in file if potential records
if ($MerittoCompare -gt $Merit) {
$Diffe = $MerittoCompare - $Merit
# Troisi format: GapSize YYYY-MM-DD Discoverer Merit Prime
$TroisiRecord = "$GapSizetoCompare $FormattedDate $Discoverer $MerittoCompare $Prime"
Write-Host "Le Gap $GapSizetoCompare est un Record potentiel : $TroisiRecord Diff:$Diffe Digits=$Digits $progressInfo" -ForegroundColor Green
Write-Warning "$line"
# Writing in Troisi format to the file
$TroisiRecord | Add-Content $PotentialRecordsFile
# " " | Add-Content $PotentialRecordsFile
$c++
$recordCount++
}
}
$s++
} # End ForEach
pause
#!/usr/bin/env python
# coding: utf-8
import pyjsonrpc
http_client = pyjsonrpc.HttpClient(
url = "http://localhost:31397",
username = "username_here",
password = "password_here"
)
blockcountvar = http_client.call("getblockcount")
shift_array = [0]*1024
current_block = 0
while current_block < blockcountvar:
hashvar = http_client.call("getblockhash",current_block)
block_data = http_client.call("getblock",hashvar)
current_shift = block_data["shift"]
shift_array[current_shift] += 1
current_block += 1
for x in range (16,1024):
print ("shift %d:" % (x))
print shift_array[x]
#werks