BIP: XX
Title: Block v2, Height in Coinbase
Author: Gavin Andresen <gavinandresen@gmail.com>
Status: Draft
Type: Standards Track
Created: 2012-07-06
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/file/src/file.rs b/file/src/file.rs | |
index 39c0aeb..fadce24 100644 | |
--- a/file/src/file.rs | |
+++ b/file/src/file.rs | |
@@ -25,6 +25,10 @@ use std::{ | |
#[derive(Parser, Debug)] | |
#[command(author, version, about, long_about, disable_help_flag = true)] | |
struct Args { | |
+ /// Restore --help | |
+ #[arg(long, action = clap::ArgAction::HelpLong)] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extern crate libc; | |
use libc::{endgrent, getgrent, setgrent, group}; | |
use std::ffi::CStr; | |
use std::ptr; | |
struct Group { | |
name: String, | |
passwd: String, | |
gid: libc::gid_t, | |
members: Vec<String>, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extern crate libc; | |
use libc::{group, setgrent, getgrent, endgrent, gid_t}; | |
use std::ffi::CStr; | |
use std::ptr; | |
struct Group { | |
name: String, | |
passwd: String, | |
gid: gid_t, | |
members: Vec<String>, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fn enumerate_groups() { | |
let mut groupent: *mut libc::group; | |
unsafe { | |
setgrent(); | |
groupent = getgrent(); | |
} | |
while groupent != ptr::null_mut() { | |
let c_str: &CStr = unsafe { CStr::from_ptr((*groupent).gr_name) }; | |
println!("{}", c_str.to_str().unwrap()); | |
unsafe { |
This is a review of "Quantitative Analysis of the Full Bitcoin Transaction Graph" by Dorit Ron and Adi Shamir.
There are some incorrect details and analyses that warrant attention.
The authors have introduced several revisions to their paper, available at the same URL as before.
The criticism below may be outdated in part or in full.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
OP_BOOLAND 4 | |
OP_ENDIF 37 | |
OP_8 3 | |
OP_NOP1 3 | |
OP_2DUP 6 | |
OP_ROT 9 | |
OP_4 13 | |
OP_5 12 | |
OP_6 5 | |
OP_DEPTH 25 |
LPX calls external, on-chain contracts for the following systems:
- Uniswap pair (add liq, remove liq)
- Uniswap price oracle, 30 minute interval. Ref: https://github.com/bloq/sol-price-oracles
- Whitelist. Ref: https://github.com/bloq/sol-address-list
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Compile on Fedora 16 Linux: | |
g++ -O2 -Wall -g -o boostgz boostgz.cc -lboost_iostreams-mt | |
*/ | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <fstream> | |
#include <iostream> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
OP_0 104 | |
OP_1 27 | |
OP_2 12 | |
OP_2OVER 182 | |
OP_2SWAP 182 | |
OP_3 16 | |
OP_4 1 | |
OP_CHECKMULTISIG 22 | |
OP_CHECKSIG 12188693 | |
OP_CODESEPARATOR 14 |
NewerOlder