Stratum挖矿协议: 该协议是由SlushPool制定的,请参阅其官方文档:https://slushpool.com/help/manual/stratum-protocol
以下所有报文均使用\n做为行结束符。
矿机订阅:
{"id": 1, "method": "mining.subscribe", "params": []}
Stratum挖矿协议: 该协议是由SlushPool制定的,请参阅其官方文档:https://slushpool.com/help/manual/stratum-protocol
以下所有报文均使用\n做为行结束符。
矿机订阅:
{"id": 1, "method": "mining.subscribe", "params": []}
<?xml version="1.0" encoding="UTF-8"?> | |
<!-- | |
Licensed to the Apache Software Foundation (ASF) under one | |
or more contributor license agreements. See the NOTICE file | |
distributed with this work for additional information | |
regarding copyright ownership. The ASF licenses this file | |
to you under the Apache License, Version 2.0 (the | |
"License"); you may not use this file except in compliance | |
with the License. You may obtain a copy of the License at |
{"offset":0,"size":0,"pageNum":0,"step":0,"dagId":"69aa185218e9452d872ed1f5413601ec","dagName":"MDB","dagDesc":"","dagOwner":"admin","dagFlag":null,"startDate":null,"endDate":null,"updateDate":null,"dagStatus":"7","dagParam":{},"remark":null,"tasks":[{"offset":0,"size":0,"pageNum":0,"step":0,"taskId":"2bb41bdff72349ee896d262a03ece268","dagId":"69aa185218e9452d872ed1f5413601ec","taskName":"MDB","parentId":"72b421d6a87742879b56f4bf294fcf73","taskType":"multiTable_convert","taskDesc":null,"taskOwner":null,"startDate":null,"endDate":null,"taskParam":{"relationType":"内联","positionType":"deal","name":"多表关联","treeData":[{"children":[{"parent":"fd7cf41ae6fd4f05a50163d62ed55f05-demo3","name":"id","position":"1","type":"int(11)","isLeaf":true,"key":"fd7cf41ae6fd4f05a50163d62ed55f05-demo3-id"},{"parent":"fd7cf41ae6fd4f05a50163d62ed55f05-demo3","name":"mm","position":"2","type":"varchar(255)","isLeaf":true,"key":"fd7cf41ae6fd4f05a50163d62ed55f05-demo3-mm"}],"name":"demo3","position":"","type":"","isLeaf":false,"key":"fd7 |
#!/usr/bin/env python3 | |
""" | |
Very simple HTTP server in python for logging requests | |
Usage:: | |
./server.py [<port>] | |
""" | |
from http.server import BaseHTTPRequestHandler, HTTPServer | |
import logging | |
class S(BaseHTTPRequestHandler): |
#!/usr/bin/env python3 | |
# coding=utf-8 | |
import requests | |
import json | |
import re | |
def getPage(url): | |
response = requests.get(url=url) | |
return response.text |
<Enter> | |
testnametestnametestnametestnametestnametestnametestnametestnametestnametestnametestnametestnametestname | |
test1name | |
test@name | |
test @name | |
Alan Turing |
#!/usr/bin/python | |
import socket | |
import threading | |
import random | |
import sys | |
# -*- coding:utf-8 -*- | |
import socket | |
import struct | |
import os | |
import time | |
import hashlib | |
import threading | |
BUFFER_SIZE = 1024 |