Skip to content

Instantly share code, notes, and snippets.

@randomlogin
randomlogin / gist:d110b89a55152551a99ba459e3f8896d
Last active March 23, 2021 03:20
getbids-not-showing-all-bids.sh
export HSD_NETWORK=regtest
curl http://x:api-key@127.0.0.1:14037 -X POST --data '{"method": "generate","params": [2050]}' #pass the initial lock period
#create 2 wallets, populate them with some hns
hsw-cli mkwallet qwerty
hsw-cli send $(hsw-cli address default --id qwerty | grep -oP '(?<="address": ")[^"]*') 10000 --id=primary #grep extracts address
hsw-cli mkwallet asdfg
hsw-cli send $(hsw-cli address default --id asdfg | grep -oP '(?<="address": ")[^"]*') 10000 --id=primary
@randomlogin
randomlogin / http.json
Created January 25, 2021 13:26
curl 127.0.0.1:12037/block/1
{
"bits": 469827583,
"depth": 52041,
"extraNonce": "000000150000000400000000000000000000000000000000",
"hash": "0000000000a5e40e8ba291bd7e8649747fa7fb8a7af39f5bacdb7433cd2f5971",
"height": 1,
"mask": "0000000000000000000000000000000000000000000000000000000000000000",
"merkleRoot": "28b17095216d5e211ba1f61031416a51efca54eacb8c9059440c4671b0625bbe",
"nonce": 877771570,
"prevBlock": "5b6ef2d3c1f3cdcadfd9a030ba1811efdd17740f14e166489760741d075992e0",
@randomlogin
randomlogin / rpc.json
Last active January 25, 2021 13:24
curl 127.0.0.1:12037/ -X POST -d '{ "method": "getblockbyheight", "params": [ 1, true, true ] }
{
"error": null,
"id": null,
"result": {
"bits": "1c00ffff",
"chainwork": "0000000000000000000000000000000000000000000000000000020002000200",
"confirmations": 52041,
"difficulty": 256,
"extranonce": "000000150000000400000000000000000000000000000000",
"hash": "0000000000a5e40e8ba291bd7e8649747fa7fb8a7af39f5bacdb7433cd2f5971",
@randomlogin
randomlogin / Fourth_Milestone
Created February 16, 2018 13:44
Fourth Milestone
10 January 2019 – 30 March 2019
Description: Implementation of the complex and branched milestone funds distribution with
weights. Automated multilingual support of Arbiters’ communication. Basic
functionality distributes investments proportionally to the milestones’ goals,
but usually investors are interested in some development stages more than in
others. For example, one may want to have libraries for the most popular
programming languages for product usage, while others may wish to have an
appealing website which will attract customers. We want to give investors more
control and communication with Projects to have more options for all parties of
@randomlogin
randomlogin / Third_Milestone
Created February 16, 2018 13:43
Third Milestone
Dates: 29 September – 29 December 2018
Description: Research and conceptual design of non-linear and branched weighted milestones,
gain of relevant experience. Secure communication between Investor and Project.
Marketing of the Project. Staffing. Initially projects create linear roadmaps
with every milestone being unlocked once the previous one is completed.
However, this method doesn’t fit all projects, some of them need a more complex
way of organizing milestones. For example, a project may present several steps
(“levels”) with a number of milestones at each level and investors can choose
one (or more) milestones from each level. Another possibility - upon finishing
0xc9584E27Adf724121C24fc887b4E79B6aEca6cA4
{-
Tabla de joc și mutările posibile.
Modulul exportă numai funcțiile enumerate mai jos, ceea ce înseamnă
că doar acestea vor fi vizibile din alte module. Justificarea vizează
prevenirea accesului extern la structura obiectelor 'Board', și a eventualei
coruperi a consistenței interne a acestora.
-}
module Board
( Board