gold mining block flow diagram