Skip to content

Latest commit

 

History

History
23 lines (15 loc) · 629 Bytes

Readme.md

File metadata and controls

23 lines (15 loc) · 629 Bytes

This repository is a blockchain

This repo contains a post-commit hook that probabalistically accepts only 1 out of every 4,096 commits, based on whether the commit's hash starts with 3 zeros.

This is the same principle that Bitcoin is based on.

When you're ready to add a commit to this repository, run this helper script:

cp post-commit .git/hooks/
source ./commit-actions.sh

# Add your changes.
git add .

# Commit your changes.
do_commit "$commit_message"

The output of this script should look something like: