Skip to content

AustinTSchaffer/This-Repo-is-a-Blockchain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

About

This repository utilizes a Proof-of-Work mechanism to prevent new commits.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages