Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
###
# Script made by reddit/u/ben-btc & EnterTheBlockchain.com
# Updated (v2.0) by Joseph Fiscella (metacoin) for FLO v0.15.3
# Designed for a fresh install of Ubuntu 16.04
# Modified from and special thanks to reddit/u/ymmv2 for creating the btcAutoNode script
# https://www.reddit.com/r/Bitcoin/comments/1se3zd/how_to_create_a_full_bitcoin_node_in_a_5_ubuntu/
#
# https://flo.cash
@metacoin
metacoin / FLOhistory.md
Last active April 29, 2018 19:59
FLO history

FLO

Launched June 17th 2013, the first coin with a metadata field on the blockchain for the purpose of building blockchain applications.

A timeline of major events in FLO's history and Joseph's involvement

2013

@metacoin
metacoin / FLO_getbalance_notes.md
Created May 2, 2018 20:59
FLO_getbalance_notes.md

GetBalance RPC command research notes

Main function defined in wallet.cpp

GetBalance() is defined in wallet.cpp:

CAmount CWallet::GetBalance() const 
{
    CAmount nTotal = 0;
unsigned int static DeltaGravityWave(const CBlockIndex* pindexLast, const uint32_t nTime, const Consensus::Params& params)
{
/* DeltaGravityWave Difficulty Re-Adjustment Algorithm
*
* Based on a combination of:
* -- DarkGravity v3, written by Evan Duffield
* -- Delta algorithm, written by Frank (dt_cdog@yahoo.com) with adjustments by Malcolm MacLeod (mmacleod@webmail.co.za)
* */
const CBlockIndex *BlockLastSolved = pindexLast;
const CBlockIndex *BlockReading = pindexLast;
'use strict'
var BASE_REWARD = 10000000000;
function getReward(height, interval) {
const halvings = Math.floor(height / interval);
// BIP 42 (well, our own version of it,
// since we can only handle 32 bit shifts).
// https://github.com/bitcoin/bips/blob/master/bip-0042.mediawiki