mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-23 13:45:48 +00:00
Change initial account transaction sequence to 1
This commit is contained in:
@@ -174,8 +174,8 @@ Account.prototype.getNextSequence = function(callback) {
|
|||||||
|
|
||||||
function accountInfo(err, info) {
|
function accountInfo(err, info) {
|
||||||
if (isNotFound(err)) {
|
if (isNotFound(err)) {
|
||||||
// New accounts will start out as sequence zero
|
// New accounts will start out as sequence one
|
||||||
callback(null, 0);
|
callback(null, 1);
|
||||||
} else if (err) {
|
} else if (err) {
|
||||||
callback(err);
|
callback(err);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user