fix: avoid double spend in sendAndConfirmTransaction

This commit is contained in:
Justin Starry
2020-06-15 18:32:57 +08:00
committed by Justin Starry
parent d77818c18b
commit f31f66a7c3
5 changed files with 53 additions and 44 deletions

View File

@@ -6,9 +6,20 @@
/**
* @ignore
*/
export const NUM_TICKS_PER_SECOND = 10;
export const NUM_TICKS_PER_SECOND = 160;
/**
* @ignore
*/
export const DEFAULT_TICKS_PER_SLOT = 8;
export const DEFAULT_TICKS_PER_SLOT = 64;
/**
* @ignore
*/
export const NUM_SLOTS_PER_SECOND =
NUM_TICKS_PER_SECOND / DEFAULT_TICKS_PER_SLOT;
/**
* @ignore
*/
export const MS_PER_SLOT = 1000 / NUM_SLOTS_PER_SECOND;