gitmark 0.0.50 → 0.0.54
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/git-mark +8 -1
- package/bin/git-mark-verify +1 -2
- package/package.json +1 -1
package/bin/git-mark
CHANGED
|
@@ -102,6 +102,11 @@ const commits = gitlog(options)
|
|
|
102
102
|
var head = commits[0].hash
|
|
103
103
|
console.log('current head', head)
|
|
104
104
|
|
|
105
|
+
if (argv._[0] === 'init') {
|
|
106
|
+
console.log($('./bin/git-mark-init').toString())
|
|
107
|
+
process.exit(0)
|
|
108
|
+
}
|
|
109
|
+
|
|
105
110
|
data.privkey = argv._[0] || secret || getPrivKey() || data.privkey
|
|
106
111
|
data.hash = argv._[1] || head || data.hash
|
|
107
112
|
data.genesis = argv.genesis || data.genesis
|
|
@@ -199,7 +204,7 @@ const gitmarkTxBase = homedir + '/.gitmark/tx'
|
|
|
199
204
|
|
|
200
205
|
try {
|
|
201
206
|
if (data.genesis) {
|
|
202
|
-
tx = { total_output: '1', fees: '0.00001' }
|
|
207
|
+
tx = { total_output: '0.1', fees: '0.00001' }
|
|
203
208
|
} else {
|
|
204
209
|
tx = require(gitmarkTxBase + '/' + lastCommit[0] + '.json')
|
|
205
210
|
if (!tx.total_output) tx.total_output = tx.vout[0].value
|
|
@@ -289,6 +294,8 @@ if (txexe && argv.send) {
|
|
|
289
294
|
} else {
|
|
290
295
|
var cmd = 'git tag -m "gitmark" -a' + ' "' + newtx.toString() + '-0000"'
|
|
291
296
|
}
|
|
297
|
+
console.log(cmd)
|
|
298
|
+
console.log($(cmd).toString())
|
|
292
299
|
}
|
|
293
300
|
|
|
294
301
|
if (argv.commit && newtx.toString().length === 64) {
|
package/bin/git-mark-verify
CHANGED